Class SegmentSlic_U8

java.lang.Object
boofcv.alg.segmentation.slic.SegmentSlic<GrayU8>
boofcv.alg.segmentation.slic.SegmentSlic_U8
All Implemented Interfaces:
Stoppable

public class SegmentSlic_U8
extends SegmentSlic<GrayU8>
Implementation of SegmentSlic for image of type GrayU8.
  • Constructor Details

    • SegmentSlic_U8

      public SegmentSlic_U8​(int numberOfRegions, float m, int totalIterations, ConnectRule connectRule)
  • Method Details

    • setColor

      public void setColor​(float[] color, int x, int y)
      Description copied from class: SegmentSlic
      Sets the cluster's to the pixel color at that location
      Specified by:
      setColor in class SegmentSlic<GrayU8>
    • addColor

      public void addColor​(float[] color, int index, float weight)
      Description copied from class: SegmentSlic
      Performs a weighted add to the cluster's color at the specified pixel in the image
      Specified by:
      addColor in class SegmentSlic<GrayU8>
    • colorDistance

      public float colorDistance​(float[] color, int index)
      Description copied from class: SegmentSlic
      Euclidean Squared distance away that the pixel is from the provided color
      Specified by:
      colorDistance in class SegmentSlic<GrayU8>
    • getIntensity

      public float getIntensity​(int x, int y)
      Description copied from class: SegmentSlic
      Intensity of the pixel at the specified location
      Specified by:
      getIntensity in class SegmentSlic<GrayU8>