public final class ValueClassifier extends Object implements Classifier
Constructor and Description |
---|
ValueClassifier(float value)
Construct with the given value.
|
Modifier and Type | Method and Description |
---|---|
float |
classify(SummedSqTiltAreaTable sat,
float wvNorm,
int x,
int y)
Get the classification score for the window at (x, y) with the size
defined by scale.
|
void |
updateCaches(StageTreeClassifier cascade)
Update the caches for a given scale (given by the
cachedScale of the StageTreeClassifier ). |
public ValueClassifier(float value)
value
- the value.public final float classify(SummedSqTiltAreaTable sat, float wvNorm, int x, int y)
Classifier
classify
in interface Classifier
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 void updateCaches(StageTreeClassifier cascade)
Classifier
cachedScale
of the StageTreeClassifier
).updateCaches
in interface Classifier
cascade
- the tree of stages