boofcv.alg.tracker.meanshift
Class LocalWeightedHistogramRotRect<T extends ImageBase>
- java.lang.Object
-
- boofcv.alg.tracker.meanshift.LocalWeightedHistogramRotRect<T>
-
public class LocalWeightedHistogramRotRect<T extends ImageBase> extends java.lang.ObjectComputes 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 withTrackerMeanShiftComaniciu2003. The histogram is stored in a row major format.
-
-
Constructor Summary
Constructors Constructor and Description LocalWeightedHistogramRotRect(int numSamples, double numSigmas, int numHistogramBins, int numBands, float maxPixelValue, InterpolatePixelMB<T> interpolate)Configures histogram calculation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcomputeHistogram(T image, RectangleRotate_F32 region)Computes the histogram inside the specified region.float[]getHistogram()int[]getSampleHistIndex()java.util.List<Point2D_F32>getSamplePts()
-
-
-
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 3numHistogramBins- Number of bins in the histogramnumBands- Number of bands in the input imagemaxPixelValue- Maximum value of a pixel across all bandsinterpolate- 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 callinggetHistogram().- Parameters:
image- Input imageregion- 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