public class MeanShiftPeak<T extends boofcv.struct.image.ImageGray>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected float |
convergenceTol |
protected T |
image |
protected boofcv.alg.interpolate.InterpolatePixelS<T> |
interpolate |
protected int |
maxIterations |
protected float |
peakX |
protected float |
peakY |
protected int |
radius |
protected boofcv.alg.weights.WeightPixel_F32 |
weights |
protected int |
width |
protected float |
x0 |
protected float |
y0 |
| Constructor and Description |
|---|
MeanShiftPeak(int maxIterations,
float convergenceTol,
boofcv.alg.weights.WeightPixel_F32 weights,
java.lang.Class<T> imageType)
Configures search.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getPeakX() |
float |
getPeakY() |
void |
search(float cx,
float cy)
Performs a mean-shift search center at the specified coordinates
|
void |
setImage(T image)
Specifies the input image
|
void |
setRadius(int radius) |
protected void |
setRegion(float cx,
float cy)
Updates the location of the rectangular bounding box
|
protected T extends boofcv.struct.image.ImageGray image
protected boofcv.alg.interpolate.InterpolatePixelS<T extends boofcv.struct.image.ImageGray> interpolate
protected int maxIterations
protected int radius
protected int width
protected float convergenceTol
protected float peakX
protected float peakY
protected float x0
protected float y0
protected boofcv.alg.weights.WeightPixel_F32 weights
public MeanShiftPeak(int maxIterations,
float convergenceTol,
boofcv.alg.weights.WeightPixel_F32 weights,
java.lang.Class<T> imageType)
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.public void setImage(T image)
image - input imagepublic void setRadius(int radius)
public void search(float cx,
float cy)
protected void setRegion(float cx,
float cy)
cx - Image center x-axiscy - Image center y-axispublic float getPeakX()
public float getPeakY()