Class SegmentMeanShiftSearchColor<T extends ImageMultiBand<T>>

java.lang.Object
boofcv.alg.segmentation.ms.SegmentMeanShiftSearch<T>
boofcv.alg.segmentation.ms.SegmentMeanShiftSearchColor<T>
All Implemented Interfaces:
Stoppable

public class SegmentMeanShiftSearchColor<T extends ImageMultiBand<T>> extends SegmentMeanShiftSearch<T>

Implementation of SegmentMeanShiftSearch for color images

  • Field Details

  • Constructor Details

    • SegmentMeanShiftSearchColor

      public SegmentMeanShiftSearchColor(int maxIterations, float convergenceTol, InterpolatePixelMB<T> interpolate, int radiusX, int radiusY, float maxColorDistance, boolean fast, ImageType<T> imageType)
  • Method Details

    • process

      public void process(T image)
      Performs mean-shift clustering on the input image
      Specified by:
      process in class SegmentMeanShiftSearch<T extends ImageMultiBand<T>>
      Parameters:
      image - Input image
    • getImageType

      public ImageType<T> getImageType()
      Specified by:
      getImageType in class SegmentMeanShiftSearch<T extends ImageMultiBand<T>>
    • findPeak

      protected void findPeak(float cx, float cy, float[] meanColor)
      Uses mean-shift to find the peak. Returns the peak as an index in the image data array.
      Parameters:
      meanColor - The color value which mean-shift is trying to find a region which minimises it
    • meanColor

      protected static void meanColor(float[] sum, float[] mean, float total)
    • sumColor

      protected static void sumColor(float[] sum, float[] pixel, float weight)
    • savePeakColor

      protected void savePeakColor(float[] a)