Documentation of 'boofcv.alg.tracker.tld.TldVarianceFilter' Java class
TldVarianceFilter
boofcv.alg.tracker.tld

Class TldVarianceFilter<T extends ImageGray>



  • public class TldVarianceFilter<T extends ImageGray>
    extends java.lang.Object
    Compute 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 to setImage(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 Detail

      • TldVarianceFilter

        public TldVarianceFilter(java.lang.Class<T> imageType)
        Constructor which specifies the input image type.
        Parameters:
        imageType - Either GrayU8 or GrayF32
    • 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

You see the box below because you did not login.