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

IDynamicRangeEstimator.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(IDynamicRangeEstimator);
14 #endif
15
21 struct DynamicRangeEstimation {
22 float dynamicRangeScore;
23 };
24
29 struct IDynamicRangeEstimator : IRefCounted {
30
40 virtual Result<FSDKError>
41 estimate(
42 const Image& image,
43 const Detection& detection,
44 DynamicRangeEstimation& estimation) const noexcept = 0;
45
57 virtual Result<FSDKError>
58 estimate(
59 Span<const Image> images,
60 Span<const Detection> detections,
61 Span<DynamicRangeEstimation> estimations) const noexcept = 0;
62
74 virtual Result<FSDKError>
75 validate(
76 Span<const Image> images,
77 Span<const Detection> detection,
78 Span<Result<FSDKError>> errors) const noexcept = 0;
79 };
80
81 } // namespace fsdk
fsdk::DynamicRangeEstimation
DynamicRange estimator output structure. This structure contains score for possible estimation result...
Definition: IDynamicRangeEstimator.h:21
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
fsdk::DynamicRangeEstimation::dynamicRangeScore
float dynamicRangeScore
numerical value in range [0, 1]
Definition: IDynamicRangeEstimator.h:22
IObject.h
Object system types and interfaces.
fsdk::IDynamicRangeEstimator::estimate
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, DynamicRangeEstimation &estimation) const noexcept=0
Estimates dynamic range of an image.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::Image
Image.
Definition: Image.h:38
fsdk::IDynamicRangeEstimator::validate
virtual Result< FSDKError > validate(Span< const Image > images, Span< const Detection > detection, Span< Result< FSDKError >> errors) const noexcept=0
Validates input of multiple frames in a single function call.
fsdk::Detection
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
fsdk::IDynamicRangeEstimator
DynamicRange estimator interface.
Definition: IDynamicRangeEstimator.h:29