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

Face detection area warper interface. More...

#include <IWarper.h>

Inheritance diagram for fsdk::IWarper:
fsdk::IRefCounted

Public Member Functions

virtual Transformation createTransformation (const Detection &detection, const Landmarks5 &landmarks) const noexcept=0
 Create transformation data struct. More...
 
virtual Result< FSDKErrorwarp (const Image &image, const Transformation &transformation, Image &transformedImage) const noexcept=0
 Warp image. More...
 
virtual Result< FSDKErrorwarp (const Landmarks5 &landmarks, const Transformation &transformation, Landmarks5 &transformedLandmarks) const noexcept=0
 Warp landmarks of size 5. More...
 
virtual Result< FSDKErrorwarp (const Landmarks68 &landmarks68, const Transformation &transformation, Landmarks68 &transformedLandmarks68) const noexcept=0
 Warp landmarks of size 68. More...
 
virtual Result< FSDKErrorunwarp (const EyesEstimation &eyesEstimationInWarpCoordinates, const Transformation &transformation, EyesEstimation &eyesEstimation) const noexcept=0
 Warp irisLandmarks in EyesEstimation struct for both eyes. More...
 
virtual Result< FSDKErrorunwarp (const Landmarks5 &warpedLandmarks5, const Transformation &transformation, Landmarks5 &landmarks5) const noexcept=0
 Warp landmarks of size 5 back to source image coords. More...
 
virtual Result< FSDKErrorunwarp (const Landmarks68 &warpedLandmarks68, const Transformation &transformation, Landmarks68 &landmarks68) const noexcept=0
 Warp landmarks of size 68 back to source image coords. More...
 
virtual fsdk::Result< FSDKErrorunwarp (const fsdk::GazeEstimation &warpedAngles, const Transformation &transformation, fsdk::GazeEstimation &angles) const noexcept=0
 
- 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

Face detection area warper interface.

Perform affine transformations on an image to properly align depicted face for descriptor extraction.

Member Function Documentation

virtual Transformation fsdk::IWarper::createTransformation ( const Detection detection,
const Landmarks5 landmarks 
) const
pure virtualnoexcept

Create transformation data struct.

Parameters
[in]detectiondetection rect where landmarks are.
[in]landmarksvector of landmarks to calculate warping angles.
virtual Result<FSDKError> fsdk::IWarper::unwarp ( const EyesEstimation eyesEstimationInWarpCoordinates,
const Transformation transformation,
EyesEstimation eyesEstimation 
) const
pure virtualnoexcept

Warp irisLandmarks in EyesEstimation struct for both eyes.

Warps from warped image coord. space to source image coord. space, the one that was used to create transformation.

Parameters
[in]eyesEstimationInWarpCoordinatesEyesEstimation straight out of EyeEstimator. Should be create from warpedImage, that was created with the same transformation object as the one passed.
[in]transformationtransformation data.
[out]eyesEstimationeyes estimation with iris landmarks warped to source image coord. space.
Returns
error code.
virtual Result<FSDKError> fsdk::IWarper::unwarp ( const Landmarks5 warpedLandmarks5,
const Transformation transformation,
Landmarks5 landmarks5 
) const
pure virtualnoexcept

Warp landmarks of size 5 back to source image coords.

Parameters
[in]warpedLandmarks5warped landmarks array of size 5.
[in]transformationtransformation data.
[out]landmarks5landmarks of size 5 warped back to source image coords.
Returns
error code.
virtual Result<FSDKError> fsdk::IWarper::unwarp ( const Landmarks68 warpedLandmarks68,
const Transformation transformation,
Landmarks68 landmarks68 
) const
pure virtualnoexcept

Warp landmarks of size 68 back to source image coords.

Parameters
[in]warpedLandmarks5warped landmarks array of size 68.
[in]transformationtransformation data.
[out]landmarks5landmarks of size 68 warped back to source image coords.
Returns
error code.
virtual Result<FSDKError> fsdk::IWarper::warp ( const Image image,
const Transformation transformation,
Image transformedImage 
) const
pure virtualnoexcept

Warp image.

Parameters
[in]imageinput image in R8G8B8 format.
[in]transformationtransformation data.
[out]transformedImageoutput transformed image.
Returns
error code.
virtual Result<FSDKError> fsdk::IWarper::warp ( const Landmarks5 landmarks,
const Transformation transformation,
Landmarks5 transformedLandmarks 
) const
pure virtualnoexcept

Warp landmarks of size 5.

Parameters
[in]landmarkslandmarks array of size 5
[in]transformationtransformation data.
[out]transformedLandmarksoutput transformed landmarks. If transformation is created with detection, it's in the coords of transformed warped image, otherwise in the coords of detection.
Returns
error code.
virtual Result<FSDKError> fsdk::IWarper::warp ( const Landmarks68 landmarks68,
const Transformation transformation,
Landmarks68 transformedLandmarks68 
) const
pure virtualnoexcept

Warp landmarks of size 68.

Parameters
[in]landmarks68landmarks to warp.
[in]transformationtransformation data.
[out]transformedLandmarks68output transformed landmarks of size 68. If transformation is created with detection, it's in the coords of transformed warped image, otherwise in the coords of detection.
Returns
error code.

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