Face Engine SDK  5.14.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
INaturalLightEstimator.h
1 #pragma once
2 
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 
6 #include <fsdk/Types/Image.h>
7 #include <fsdk/Types/Result.h>
8 #include <fsdk/Types/Span.h>
9 
10 namespace fsdk {
11 
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
13  DECLARE_SMARTPTR(INaturalLightEstimator);
14 #endif
15 
25  enum class LightStatus : uint8_t {
26  NonNatural = 0,
27  Natural = 1
28  };
29 
38  float score;
39  };
40 
46 
55  virtual Result<FSDKError>
56  estimate(
57  const Image& warp,
58  NaturalLightEstimation& estimation) const noexcept = 0;
59 
70  virtual Result<FSDKError>
71  estimate(
72  Span<const Image> warps,
73  Span<NaturalLightEstimation> estimations) const noexcept = 0;
74 
85  virtual Result<FSDKError>
86  validate(
87  Span<const Image> warps,
88  Span<Result<FSDKError>> errors) const noexcept = 0;
89  };
91 } // namespace fsdk
LightStatus status
estimation result (
Definition: INaturalLightEstimator.h:37
#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
float score
Numerical value in range [0, 1].
Definition: INaturalLightEstimator.h:38
Object system types and interfaces.
Common SDK error codes.
virtual Result< FSDKError > estimate(const Image &warp, NaturalLightEstimation &estimation) const noexcept=0
Estimate natural light probability.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
NaturalLight estimator interface.
Definition: INaturalLightEstimator.h:45
virtual Result< FSDKError > validate(Span< const Image > warps, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
LightStatus
NaturalLight estimator output enum. This enum contains all possible estimation results.
Definition: INaturalLightEstimator.h:25
Image.
Definition: Image.h:39
light is not natural
NaturalLight estimator output structure. This structure contains the result of estimation and probabi...
Definition: INaturalLightEstimator.h:36
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14