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);

Parameters

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

Description

The function ippiTiltHaarFeatures is declared in the ippcv.h file. This function tilts specified features of the Haar classifier created by the function ippiHaarClassifierInitAlloc. Non-zero elements of previously prepared vector pMask indicates the features that will be tilted. The flag parameter specifies how the features are tilted: if its value is equal to 0, the feature is tilted around the left top corner clockwise, if it 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 condition if one of the specified pointer is NULL.

ippStsBadArgErr

Indicates an error condition if the classifier is tilted already.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.