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

IImageModificationEstimator.h
1 #pragma once
2
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 #include <fsdk/Types.h>
6
7 namespace fsdk {
8
9 #ifndef DOXYGEN_SHOULD_SKIP_THIS
10 DECLARE_SMARTPTR(IImageModificationEstimator);
11 #endif
12
21 struct ImageModificationEstimation {
22 enum class Status {
23 Modified = 0,
24 Unmodified
25 };
26
27 float score;
28
30 Status status;
31 };
32
36 struct IImageModificationEstimator : IRefCounted {
44 virtual ResultValue<FSDKError, ImageModificationEstimation>
45 estimate(const Image& image) const noexcept = 0;
46
57 virtual Result<FSDKError>
58 estimate(Span<const Image> images, Span<ImageModificationEstimation> out) const noexcept = 0;
59
70 virtual Result<FSDKError>
71 validate(Span<const Image> images, Span<Result<FSDKError>> errors) const noexcept = 0;
72 };
73
75 } // namespace fsdk
fsdk::ImageModificationEstimation::Status
Status
Definition: IImageModificationEstimator.h:22
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::ImageModificationEstimation
Image modification estimator output structure.
Definition: IImageModificationEstimator.h:21
Types.h
Common data types and structures.
fsdk::ImageModificationEstimation::Status::Modified
Modification traces are found, the image is modified.
IObject.h
Object system types and interfaces.
fsdk::IImageModificationEstimator::estimate
virtual ResultValue< FSDKError, ImageModificationEstimation > estimate(const Image &image) const noexcept=0
Estimate the likelihood that the image is unmodified.
FSDKError.h
Common SDK error codes.
fsdk::ImageModificationEstimation::Status::Unmodified
Modification traces are not found, the image is probably unmodified.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::ImageModificationEstimation::score
float score
"0" means that modification traces are certainly present.
Definition: IImageModificationEstimator.h:27
fsdk::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
fsdk::IImageModificationEstimator
Image modification estimator interface.
Definition: IImageModificationEstimator.h:36
fsdk::Image
Image.
Definition: Image.h:38
fsdk::IImageModificationEstimator::validate
virtual Result< FSDKError > validate(Span< const Image > images, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple images in a single function call.
fsdk::ImageModificationEstimation::status
Status status
whether the image is modified
Definition: IImageModificationEstimator.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