Package boofcv.alg.segmentation.slic
Class SegmentSlic_PlF32
java.lang.Object
boofcv.alg.segmentation.slic.SegmentSlic<Planar<GrayF32>>
boofcv.alg.segmentation.slic.SegmentSlic_PlF32
- All Implemented Interfaces:
Stoppable
-
Nested Class Summary
Nested classes/interfaces inherited from class boofcv.alg.segmentation.slic.SegmentSlic
SegmentSlic.Cluster, SegmentSlic.ClusterDistance, SegmentSlic.PixelNested classes/interfaces inherited from interface org.ddogleg.struct.Stoppable
Stoppable.Stopped -
Field Summary
Fields inherited from class boofcv.alg.segmentation.slic.SegmentSlic
BORDER, clusters, connectRule, gridInterval, imageType, input, pixels, segment -
Constructor Summary
ConstructorsConstructorDescriptionSegmentSlic_PlF32(int numberOfRegions, float m, int totalIterations, ConnectRule connectRule, int numBands) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColor(float[] color, int index, float weight) Performs a weighted add to the cluster's color at the specified pixel in the imagefloatcolorDistance(float[] color, int index) Euclidean Squared distance away that the pixel is from the provided colorfloatgetIntensity(int x, int y) Intensity of the pixel at the specified locationvoidsetColor(float[] color, int x, int y) Sets the cluster's to the pixel color at that locationMethods inherited from class boofcv.alg.segmentation.slic.SegmentSlic
assignLabelsToPixels, computeClusterDistance, getClusters, getConnectRule, getImageType, getRegionMemberCount, gradient, initalize, initializeClusters, isStopRequested, perturbCenter, process, requestStop, updateClusters
-
Constructor Details
-
SegmentSlic_PlF32
public SegmentSlic_PlF32(int numberOfRegions, float m, int totalIterations, ConnectRule connectRule, int numBands)
-
-
Method Details
-
setColor
public void setColor(float[] color, int x, int y) Description copied from class:SegmentSlicSets the cluster's to the pixel color at that location- Specified by:
setColorin classSegmentSlic<Planar<GrayF32>>
-
addColor
public void addColor(float[] color, int index, float weight) Description copied from class:SegmentSlicPerforms a weighted add to the cluster's color at the specified pixel in the image- Specified by:
addColorin classSegmentSlic<Planar<GrayF32>>
-
colorDistance
public float colorDistance(float[] color, int index) Description copied from class:SegmentSlicEuclidean Squared distance away that the pixel is from the provided color- Specified by:
colorDistancein classSegmentSlic<Planar<GrayF32>>
-
getIntensity
public float getIntensity(int x, int y) Description copied from class:SegmentSlicIntensity of the pixel at the specified location- Specified by:
getIntensityin classSegmentSlic<Planar<GrayF32>>
-