| Face Engine SDK 5.35.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
26 struct DynamicRangeEstimation {
27 float dynamicRangeScore;
28 };
29
34 struct IDynamicRangeEstimator : IRefCounted {
35
45 virtual Result<FSDKError> estimate(
46 const Image& image,
47 const Detection& detection,
48 DynamicRangeEstimation& estimation) const noexcept = 0;
49
61 virtual Result<FSDKError> estimate(
62 Span<const Image> images,
63 Span<const Detection> detections,
64 Span<DynamicRangeEstimation> estimations) const noexcept = 0;
65
77 virtual Result<FSDKError> validate(
78 Span<const Image> images,
79 Span<const Detection> detection,
80 Span<Result<FSDKError>> errors) const noexcept = 0;
81 };
82
84 } // namespace fsdk
fsdk::DynamicRangeEstimation
DynamicRange estimator output structure. This structure contains score for possible estimation result...
Definition: IDynamicRangeEstimator.h:26
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:70
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::DynamicRangeEstimation::dynamicRangeScore
float dynamicRangeScore
numerical value in range [0, 1]
Definition: IDynamicRangeEstimator.h:27
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:37
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:34