public class VarianceFilter extends Object
DetectorCascade.detect(FImage)
.
For each window in the DetectorCascade
a variance is calculated using IntegralImage
for speed.
Windows are filtered by whether they contain more variance than minVar which is the variance of
the original bounding box being trackedModifier and Type | Field and Description |
---|---|
DetectionResult |
detectionResult
the results of the variance check are saved to this results instance
|
boolean |
enabled
whether the variance filter is enabled
|
float |
minVar
the minimum variance (variance of the original bounding box)
|
Constructor and Description |
---|
VarianceFilter()
enabled with a 0 minvar (most permissive)
|
Modifier and Type | Method and Description |
---|---|
boolean |
filter(int windowIndex) |
void |
nextIteration(FImage img)
calculates the integralImage and the integral(image*image) (these are used to calculate variance)
|
public boolean enabled
public DetectionResult detectionResult
public float minVar
public VarianceFilter()
public void nextIteration(FImage img)
img
- public boolean filter(int windowIndex)
windowIndex
-