boofcv.alg.segmentation
Class ComputeRegionMeanColor<T extends ImageBase>
- java.lang.Object
-
- boofcv.alg.segmentation.ComputeRegionMeanColor<T>
-
- Direct Known Subclasses:
- ComputeRegionMeanColor.F32, ComputeRegionMeanColor.PL_F32, ComputeRegionMeanColor.PL_U8, ComputeRegionMeanColor.U8
public abstract class ComputeRegionMeanColor<T extends ImageBase> extends java.lang.ObjectComputes the mean color for regions in a segmented image.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classComputeRegionMeanColor.F32Implementation forGrayF32static classComputeRegionMeanColor.PL_F32Implementation forPlanarstatic classComputeRegionMeanColor.PL_U8Implementation forPlanarstatic classComputeRegionMeanColor.U8Implementation forGrayU8
-
Constructor Summary
Constructors Constructor and Description ComputeRegionMeanColor(int numBands)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidprocess(T image, GrayS32 pixelToRegion, GrowQueue_I32 regionMemberCount, FastQueue<float[]> regionColor)Compute the average color for each region
-
-
-
Constructor Detail
-
ComputeRegionMeanColor
public ComputeRegionMeanColor(int numBands)
Constructor- Parameters:
numBands- Number of bands in the color image
-
-
Method Detail
-
process
public void process(T image, GrayS32 pixelToRegion, GrowQueue_I32 regionMemberCount, FastQueue<float[]> regionColor)
Compute the average color for each region- Parameters:
image- Input imagepixelToRegion- Conversion between pixel to region indexregionMemberCount- List which stores the number of members for each regionregionColor- (Output) Storage for mean color throughout the region. Internal array must be fully declared.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG