public abstract class MeanShiftPeak<T extends ImageSingleBand> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected float |
convergenceTol |
protected T |
image |
protected InterpolatePixelS<T> |
interpolate |
protected int |
maxIterations |
protected float |
peakX |
protected float |
peakY |
protected int |
radius |
protected int |
width |
protected float |
x0 |
protected float |
y0 |
| Constructor and Description |
|---|
MeanShiftPeak(int maxIterations,
float convergenceTol,
int radius,
Class<T> imageType)
Configures search.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getPeakX() |
float |
getPeakY() |
abstract 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 ImageSingleBand image
protected InterpolatePixelS<T extends ImageSingleBand> 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
public void setImage(T image)
image - input imagepublic void setRadius(int radius)
public abstract 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()
Copyright © 2013. All Rights Reserved.