cascadedetect_r89.diff
D:/OpenCV/Workspace/OpenCV2.2_VerifyTraining/include/opencv2/objdetect/objdetect.hpp (revision 89) | ||
---|---|---|
314 | 314 |
int first; |
315 | 315 |
int ntrees; |
316 | 316 |
float threshold; |
317 |
static const float THRESHOLD_EPS; |
|
317 | 318 |
}; |
318 | 319 |
|
319 | 320 |
enum { BOOST = 0 }; |
D:/OpenCV/Workspace/OpenCV2.2_VerifyTraining/modules/objdetect/src/cascadedetect.cpp (revision 89) | ||
---|---|---|
630 | 630 |
|
631 | 631 |
//---------------------------------------- Classifier Cascade -------------------------------------------- |
632 | 632 | |
633 |
const float CascadeClassifier::Stage::THRESHOLD_EPS = 0.00001F; |
|
634 | ||
633 | 635 |
CascadeClassifier::CascadeClassifier() |
634 | 636 |
{ |
635 | 637 |
} |
... | ... | |
779 | 781 |
#ifdef CASCADE_DEBUG |
780 | 782 |
std::cout << "<< Stage Value: " << sum << " >> " << std::endl; |
781 | 783 |
#endif |
782 |
if( sum < stage.threshold )
|
|
784 |
if( sum < (stage.threshold - stage.THRESHOLD_EPS) )
|
|
783 | 785 |
return -si; |
784 | 786 |
} |
785 | 787 |
return 1; |