Documentation of 'boofcv.alg.tracker.meanshift.LocalWeightedHistogramRotRect' Java class
LocalWeightedHistogramRotRect
boofcv.alg.tracker.meanshift

Class LocalWeightedHistogramRotRect<T extends ImageBase>



  • public class LocalWeightedHistogramRotRect<T extends ImageBase>
    extends java.lang.Object
    Computes a local histogram weighted using a Gaussian function. The weighting function is shaped using a rotated rectangle, where the sigma along each axis is set by the rectangle's width and height. For use with TrackerMeanShiftComaniciu2003. The histogram is stored in a row major format.
    • Field Detail

      • imageX

        public float imageX
      • imageY

        public float imageY
    • Constructor Detail

      • LocalWeightedHistogramRotRect

        public LocalWeightedHistogramRotRect(int numSamples,
                                             double numSigmas,
                                             int numHistogramBins,
                                             int numBands,
                                             float maxPixelValue,
                                             InterpolatePixelMB<T> interpolate)
        Configures histogram calculation.
        Parameters:
        numSamples - Number of points it samples along each axis of the rectangle.
        numSigmas - Number of standard deviations away the sides will be from the center. Try 3
        numHistogramBins - Number of bins in the histogram
        numBands - Number of bands in the input image
        maxPixelValue - Maximum value of a pixel across all bands
        interpolate - Function used to interpolate the image
    • Method Detail

      • computeHistogram

        public void computeHistogram(T image,
                                     RectangleRotate_F32 region)
        Computes the histogram inside the specified region. Results are returned by calling getHistogram().
        Parameters:
        image - Input image
        region - Region which is to be sampled
      • getHistogram

        public float[] getHistogram()
      • getSampleHistIndex

        public int[] getSampleHistIndex()
      • getSamplePts

        public java.util.List<Point2D_F32> getSamplePts()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.