| Face Engine SDK 5.7.0 A face detection, recognition and tracking engine.

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
27 struct ImageColorEstimation {
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
44 struct IBlackWhiteEstimator : IRefCounted {
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
67 virtual Result<FSDKError> estimate(
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
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Types.h
Common data types and structures.
fsdk::ImageColorEstimation::colorScore
float colorScore
0(grayscale)..1(color);
Definition: IBlackWhiteEstimator.h:29
fsdk::IBlackWhiteEstimator::estimate
virtual Result< FSDKError > estimate(const Image &image, bool &outIsGrayscale) const noexcept=0
Check if image is grayscale or color.
IObject.h
Object system types and interfaces.
fsdk::IBlackWhiteEstimator::validate
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.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::ImageColorEstimation::ImageColorType
ImageColorType
Enumeration of possible image color types.
Definition: IBlackWhiteEstimator.h:35
fsdk::Image
Image.
Definition: Image.h:38
fsdk::ImageColorEstimation::ImageColorType::Grayscale
Image is grayscale.
fsdk::ImageColorEstimation::ImageColorType::Color
Image is color.
fsdk::IBlackWhiteEstimator
Definition: IBlackWhiteEstimator.h:44
fsdk::ImageColorEstimation
Image color type estimator interface.
Definition: IBlackWhiteEstimator.h:27
fsdk::ImageColorEstimation::ImageColorType::Infrared
Image is infrared.
fsdk::ImageColorEstimation::infraredScore
float infraredScore
0(infrared)..1(not infrared);
Definition: IBlackWhiteEstimator.h:30
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14