boofcv.alg.feature.detect.peak
Class MeanShiftPeak<T extends ImageGray>
- java.lang.Object
-
- boofcv.alg.feature.detect.peak.MeanShiftPeak<T>
-
public class MeanShiftPeak<T extends ImageGray> extends java.lang.ObjectSimple implementations of mean-shift intended to finding local peaks inside an intensity image. Implementations differ in how they weigh each point. In each iterations the mean of the square sample region centered around the target is computed and the center shifted so that location. It stops when change is less than a delta or the maximum number of iterations has been exceeded. If the image border is hit while searching the square will be push back until it is entirely contained inside the image.
-
-
Constructor Summary
Constructors Constructor and Description MeanShiftPeak(int maxIterations, float convergenceTol, WeightPixel_F32 weights, java.lang.Class<T> imageType)Configures search.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatgetPeakX()floatgetPeakY()voidsearch(float cx, float cy)Performs a mean-shift search center at the specified coordinatesvoidsetImage(T image)Specifies the input imagevoidsetRadius(int radius)
-
-
-
Constructor Detail
-
MeanShiftPeak
public MeanShiftPeak(int maxIterations, float convergenceTol, WeightPixel_F32 weights, java.lang.Class<T> imageType)Configures search.- Parameters:
maxIterations- Maximum number of iterations. Try 10convergenceTol- Convergence tolerance. Try 1e-3weights- Used to compute the weight each pixel contributes to the mean. Try a uniform distribution.
-
-
Method Detail
-
setImage
public void setImage(T image)
Specifies the input image- Parameters:
image- input image
-
setRadius
public void setRadius(int radius)
-
search
public void search(float cx, float cy)Performs a mean-shift search center at the specified coordinates
-
getPeakX
public float getPeakX()
-
getPeakY
public float getPeakY()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG