@Reference(type=Inproceedings, author={"Viola, P.","Jones, M."}, title="Rapid object detection using a boosted cascade of simple features", year="2001", booktitle="Computer Vision and Pattern Recognition, 2001. CVPR 2001. Proceedings of the 2001 IEEE Computer Society Conference on", pages={" I","511 "," I","518 vol.1"}, number="", volume="1", customData={"keywords"," AdaBoost; background regions; boosted simple feature cascade; classifiers; face detection; image processing; image representation; integral image; machine learning; object specific focus-of-attention mechanism; rapid object detection; real-time applications; statistical guarantees; visual object detection; feature extraction; image classification; image representation; learning (artificial intelligence); object detection;","doi","10.1109/CVPR.2001.990517","ISSN","1063-6919 "}) public class Stage extends Object
successStage()
should be evaluated. If the stage fails, then the
failureStage()
will be evaluated. The actual coordination of calling
the successStage()
or failureStage()
is performed by the
StageTreeClassifier
.Constructor and Description |
---|
Stage(float threshold,
Classifier[] trees,
Stage successStage,
Stage failureStage)
Construct a new stage.
|
Modifier and Type | Method and Description |
---|---|
Stage |
failureStage()
Get the next stage to evaluate should this one fail; if this stage fails
and this is
null then the whole StageTreeClassifier
fails. |
boolean |
pass(SummedSqTiltAreaTable sat,
float wvNorm,
int x,
int y)
Test whether a stage passes.
|
Stage |
successStage()
Get the next stage to evaluate should this one pass; if this stage passes
and this is
null then the whole StageTreeClassifier
passes. |
public Stage(float threshold, Classifier[] trees, Stage successStage, Stage failureStage)
threshold
- the threshold for the stage to passtrees
- the classifier trees in the stagesuccessStage
- the next stage after this one, or null if this is the lastfailureStage
- the failure stage (for trees rather than cascades)public boolean pass(SummedSqTiltAreaTable sat, float wvNorm, int x, int y)
sat
- the summed area tables (integral images)wvNorm
- the normalisation based on the current window variancex
- the x-ordinate of the top-left of the window being testedy
- the y-ordinate of the top-left of the window being testedpublic Stage successStage()
null
then the whole StageTreeClassifier
passes.pass(SummedSqTiltAreaTable, float, int, int)
return
true.public Stage failureStage()
null
then the whole StageTreeClassifier
fails.pass(SummedSqTiltAreaTable, float, int, int)
return
false.