boofcv.alg.segmentation.slic
Class SegmentSlic_PlU8
- java.lang.Object
-
- boofcv.alg.segmentation.slic.SegmentSlic<Planar<GrayU8>>
-
- boofcv.alg.segmentation.slic.SegmentSlic_PlU8
-
public class SegmentSlic_PlU8 extends SegmentSlic<Planar<GrayU8>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class boofcv.alg.segmentation.slic.SegmentSlic
SegmentSlic.Cluster, SegmentSlic.ClusterDistance, SegmentSlic.Pixel
-
-
Field Summary
-
Fields inherited from class boofcv.alg.segmentation.slic.SegmentSlic
BORDER
-
-
Constructor Summary
Constructors Constructor and Description SegmentSlic_PlU8(int numberOfRegions, float m, int totalIterations, ConnectRule connectRule, int numBands)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddColor(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 location-
Methods inherited from class boofcv.alg.segmentation.slic.SegmentSlic
assignLabelsToPixels, getClusters, getConnectRule, getImageType, getRegionMemberCount, process
-
-
-
-
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:SegmentSlicSets the cluster's to the pixel color at that location- Specified by:
setColorin classSegmentSlic<Planar<GrayU8>>
-
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<GrayU8>>
-
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<GrayU8>>
-
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<GrayU8>>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG