Face Engine SDK  5.8.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IBlackWhiteEstimator.h
1 #pragma once
2 
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 #include <fsdk/Optional.h>
6 #include <fsdk/Types.h>
7 
8 namespace fsdk {
9 
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11  DECLARE_SMARTPTR(IBlackWhiteEstimator);
12 #endif
13 
28 
29  float colorScore;
30  float infraredScore;
31 
35  enum class ImageColorType : uint8_t {
36  Color = 0,
37  Grayscale,
38  Infrared,
39  };
40 
41  ImageColorType colorType;
42  };
43 
53  virtual Result<FSDKError>
54  FSDK_DEPRECATED("This method is deprecated since v.5.6.0, use estimation by warped image instead!")
55  estimate(
56  const Image& image,
57  bool& outIsGrayscale) const noexcept = 0;
58 
68  const Image& warp,
69  ImageColorEstimation& estimation) const noexcept = 0;
70 
81  virtual Result<FSDKError>
82  estimate(
83  Span<const Image> warps,
84  Span<ImageColorEstimation> estimations) const noexcept = 0;
85 
96  virtual Result<FSDKError>
97  validate(
98  Span<const Image> warps,
99  Span<Result<FSDKError>> errors) const noexcept = 0;
100  };
101 
102 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
float colorScore
0(grayscale)..1(color);
Definition: IBlackWhiteEstimator.h:29
virtual Result< FSDKError > estimate(const Image &image, bool &outIsGrayscale) const noexcept=0
Check if image is grayscale or color.
Object system types and interfaces.
virtual Result< FSDKError > validate(Span< const Image > warps, Span< Result< FSDKError >> errors) const noexcept=0
Validates input of multiple frames in a single function call.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
ImageColorType
Enumeration of possible image color types.
Definition: IBlackWhiteEstimator.h:35
Image.
Definition: Image.h:38
Definition: IBlackWhiteEstimator.h:44
Image color type estimator interface.
Definition: IBlackWhiteEstimator.h:27
float infraredScore
0(infrared)..1(not infrared);
Definition: IBlackWhiteEstimator.h:30
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14