Face Engine SDK  5.3.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
fsdk::IBlackWhiteEstimator Struct Referenceabstract

Grayscale image estimator interface. More...

#include <IBlackWhiteEstimator.h>

Inheritance diagram for fsdk::IBlackWhiteEstimator:
fsdk::IRefCounted

Public Member Functions

virtual Result< FSDKErrorestimate (const Image &image, bool &outIsGrayscale) const noexcept=0
 Check if image is grayscale or color. More...
 
- Public Member Functions inherited from fsdk::IRefCounted
virtual int32_t retain () noexcept=0
 Increase strong reference count. More...
 
virtual int32_t release () noexcept=0
 Decrease strong reference count. More...
 
virtual int32_t getRefCount () const noexcept=0
 Get actual strong reference count. More...
 
virtual int32_t retainWeak () noexcept=0
 Increase weak reference count. More...
 
virtual int32_t releaseWeak () noexcept=0
 Decrease weak reference count. More...
 
virtual int32_t getWeakRefCount () const noexcept=0
 Get actual weak reference count. More...
 

Detailed Description

Grayscale image estimator interface.

Note
This estimator is indifferent to image content and dimensions; you can pass both face crops (including warped images) and full frames.

Member Function Documentation

virtual Result<FSDKError> fsdk::IBlackWhiteEstimator::estimate ( const Image image,
bool &  outIsGrayscale 
) const
pure virtualnoexcept

Check if image is grayscale or color.

Parameters
[in]imagesource image. Format must be R8G8B8.
[out]outIsGrayscaleestimation result; true if image is grayscale, false if not.

The documentation for this struct was generated from the following file: