Class SegmentMeanShiftSearchGray<T extends ImageGray<T>>

All Implemented Interfaces:

public class SegmentMeanShiftSearchGray<T extends ImageGray<T>> extends SegmentMeanShiftSearch<T>

Implementation of SegmentMeanShiftSearch for gray-scale images

  • Field Details

  • Constructor Details

    • SegmentMeanShiftSearchGray

      public SegmentMeanShiftSearchGray(int maxIterations, float convergenceTol, InterpolatePixelS<T> interpolate, int radiusX, int radiusY, float maxColorDistance, boolean fast)
  • Method Details

    • process

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

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

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