Visible to Intel only — GUID: GUID-4503DFEF-3F92-411C-BEBD-BE468F15AD2A
Visible to Intel only — GUID: GUID-4503DFEF-3F92-411C-BEBD-BE468F15AD2A
TiltedHaarClassifierInit
Initializes the structure for tilted Haar classifiers.
Syntax
IppStatus ippiTiltedHaarClassifierInit_32f(IppiHaarClassifier_32f* pState, const IppiRect* pFeature, const Ipp32f* pWeight, const Ipp32f* pThreshold, const Ipp32f* pVal1, const Ipp32f* pVal2, const int* pNum, int length);
IppStatus ippiTiltedHaarClassifierInit_32s(IppiHaarClassifier_32s* pState, const IppiRect* pFeature, const Ipp32s* pWeight, const Ipp32s* pThreshold, const Ipp32s* pVal1, const Ipp32s* pVal2, const int* pNum, int length);
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
- pState
- Double pointer to the Haar classifier structure.
- pFeature
- Pointer to the array of features.
- pWeight
- Pointer to the array of feature weights.
- pThreshold
- Pointer to the array of classifier threshold values.
- pVal1, pVal2
- Pointers to the arrays of classifier result values.
- pNum
- Pointer to the array of Haar classifier lengths.
- length
- Number of classifiers in the stage.
Description
This function initializes the state structure that is required to calculate the sequence of Haar classifiers - classification stage. The i-th classifier in the stage has pNum[i] rectangular features. Each feature is defined by a certain rectangle with sides tilted by 45 degrees. You should specify the points with minimum and maximum row numbers. The length of the pFeature, pFeature, pWeight, pVal1, and pVal2 vectors is equal to:
Result of applying classifiers to the image is computed using the formula in "Object Detection Using Haar-like Features".
All features of the classifier initialized by the ippiTiltedHaarClassifierInit function have tilted sides (right part of Figure “Representing Haar Features”).
Return Values
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsNullPtrErr |
Indicates an error when any of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an error when:
|
ippStsBadArgErr |
Indicates an error when one of the features is defined incorrectly. |