boofcv.alg.tracker.tld
Class TldVarianceFilter<T extends ImageGray>
- java.lang.Object
-
- boofcv.alg.tracker.tld.TldVarianceFilter<T>
-
public class TldVarianceFilter<T extends ImageGray> extends java.lang.ObjectCompute the variance for a rectangular region using the integral image. Supports both U8 and F32 input images. For each new image in the sequence a call tosetImage(ImageGray)must be done so that it can compute the required integral images. See paper for mathematical details on how the variance is computed using integral images.
-
-
Constructor Summary
Constructors Constructor and Description TldVarianceFilter(java.lang.Class<T> imageType)Constructor which specifies the input image type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancheckVariance(ImageRectangle r)Performs variance test at the specified rectangledoublegetThresholdLower()voidselectThreshold(ImageRectangle r)Selects a threshold based on image statistics.voidsetImage(T gray)Sets the input image.static voidtransformSq(GrayF32 input, GrayF64 transformed)Integral image of pixel value squared.static voidtransformSq(GrayU8 input, GrayS64 transformed)Integral image of pixel value squared.
-
-
-
Method Detail
-
setImage
public void setImage(T gray)
Sets the input image. Must be called before other functions/- Parameters:
gray- input image
-
selectThreshold
public void selectThreshold(ImageRectangle r)
Selects a threshold based on image statistics. The paper suggestions 1/2 the variance in the initial patch
-
checkVariance
public boolean checkVariance(ImageRectangle r)
Performs variance test at the specified rectangle- Returns:
- true if it passes and false if not
-
transformSq
public static void transformSq(GrayU8 input, GrayS64 transformed)
Integral image of pixel value squared. integer
-
transformSq
public static void transformSq(GrayF32 input, GrayF64 transformed)
Integral image of pixel value squared. floating point
-
getThresholdLower
public double getThresholdLower()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG