Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

TiltHaarFeatures

Modifies a Haar classifier by tilting specified features.

Syntax

IppStatus ippiTiltHaarFeatures_32f(const Ipp8u* pMask, int flag, IppiHaarClassifier_32f* pState);

IppStatus ippiTiltHaarFeatures_32s(const Ipp8u* pMask, int flag, IppiHaarClassifier_32s* pState);

Include Files

ippcv.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h, ippi.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib, ippi.lib

Parameters

pMask
Pointer to the mask vector.
flag
Flag to choose the direction of feature tilting.
pState
Pointer to the Haar classifier structure.

Description

This function tilts specified features of the Haar classifier. Before using this function, compute the size of the Haar classifier state structure using HaarClassifierGetSize and initialize the structure using TiltedHaarClassifierInit. Non-zero elements of previously prepared vector pMask indicates the features that are tilted. The flag parameter specifies how the features are tilted:

  • if flag is equal to 0, the feature is tilted around the left top corner clockwise

  • if flag is equal to 1, the feature is tilted around the bottom left corner counter-clockwise

This mixed classifier containing both common and tilted features can be used by the function ippiApplyMixedHaarClassifier.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when one of the specified pointers is NULL.

ippStsBadArgErr

Indicates an error when the classifier is tilted already.

See Also