Documentation of 'boofcv.alg.segmentation.slic.SegmentSlic_PlU8' Java class
SegmentSlic_PlU8
boofcv.alg.segmentation.slic

Class SegmentSlic_PlU8

    • Constructor Detail

      • SegmentSlic_PlU8

        public SegmentSlic_PlU8(int numberOfRegions,
                                float m,
                                int totalIterations,
                                ConnectRule connectRule,
                                int numBands)
    • Method Detail

      • 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<Planar<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<Planar<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<Planar<GrayU8>>

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.