public class SegmentMeanShiftSearchColor<T extends boofcv.struct.image.ImageMultiBand> extends SegmentMeanShiftSearch<T>
Implementation of SegmentMeanShiftSearch for color images
| Modifier and Type | Field and Description |
|---|---|
protected org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_F32> |
history |
protected boofcv.alg.interpolate.InterpolatePixelMB<T> |
interpolate |
protected float[] |
meanColor |
protected float[] |
pixelColor |
protected float[] |
sumColor |
convergenceTol, image, maxColorDistanceSq, maxIterations, modeColor, modeLocation, modeMemberCount, modeX, modeY, pixelToMode, quickMode, radiusX, radiusY, spacialTable, weightTable, widthX, widthY| Constructor and Description |
|---|
SegmentMeanShiftSearchColor(int maxIterations,
float convergenceTol,
boofcv.alg.interpolate.InterpolatePixelMB<T> interpolate,
int radiusX,
int radiusY,
float maxColorDistance,
boolean fast,
boofcv.struct.image.ImageType<T> imageType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
findPeak(float cx,
float cy,
float[] meanColor)
Uses mean-shift to find the peak.
|
boofcv.struct.image.ImageType<T> |
getImageType() |
protected static void |
meanColor(float[] sum,
float[] mean,
float total) |
void |
process(T image)
Performs mean-shift clustering on the input image
|
protected void |
savePeakColor(float[] a) |
protected static void |
sumColor(float[] sum,
float[] pixel,
float weight) |
distanceSq, getModeColor, getModeLocation, getPixelToRegion, getRegionMemberCount, weightprotected boofcv.alg.interpolate.InterpolatePixelMB<T extends boofcv.struct.image.ImageMultiBand> interpolate
protected float[] pixelColor
protected float[] meanColor
protected float[] sumColor
protected org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_F32> history
public void process(T image)
process in class SegmentMeanShiftSearch<T extends boofcv.struct.image.ImageMultiBand>image - Input imagepublic boofcv.struct.image.ImageType<T> getImageType()
getImageType in class SegmentMeanShiftSearch<T extends boofcv.struct.image.ImageMultiBand>protected void findPeak(float cx,
float cy,
float[] meanColor)
meanColor - The color value which mean-shift is trying to find a region which minimises itprotected static void meanColor(float[] sum,
float[] mean,
float total)
protected static void sumColor(float[] sum,
float[] pixel,
float weight)
protected void savePeakColor(float[] a)