public class SegmentSlic_U8 extends SegmentSlic<boofcv.struct.image.GrayU8>
SegmentSlic for image of type GrayU8.SegmentSlic.Cluster, SegmentSlic.ClusterDistance, SegmentSlic.PixelBORDER, clusters, connectRule, gridInterval, imageType, input, pixels, segment| Constructor and Description |
|---|
SegmentSlic_U8(int numberOfRegions,
float m,
int totalIterations,
boofcv.struct.ConnectRule connectRule) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColor(float[] color,
int index,
float weight)
Performs a weighted add to the cluster's color at the specified pixel in the image
|
float |
colorDistance(float[] color,
int index)
Euclidean Squared distance away that the pixel is from the provided color
|
float |
getIntensity(int x,
int y)
Intensity of the pixel at the specified location
|
void |
setColor(float[] color,
int x,
int y)
Sets the cluster's to the pixel color at that location
|
assignLabelsToPixels, computeClusterDistance, getClusters, getConnectRule, getImageType, getRegionMemberCount, gradient, initalize, initializeClusters, perturbCenter, process, updateClusterspublic SegmentSlic_U8(int numberOfRegions,
float m,
int totalIterations,
boofcv.struct.ConnectRule connectRule)
public void setColor(float[] color,
int x,
int y)
SegmentSlicsetColor in class SegmentSlic<boofcv.struct.image.GrayU8>public void addColor(float[] color,
int index,
float weight)
SegmentSlicaddColor in class SegmentSlic<boofcv.struct.image.GrayU8>public float colorDistance(float[] color,
int index)
SegmentSliccolorDistance in class SegmentSlic<boofcv.struct.image.GrayU8>public float getIntensity(int x,
int y)
SegmentSlicgetIntensity in class SegmentSlic<boofcv.struct.image.GrayU8>