public abstract class ComputeRegionMeanColor<T extends boofcv.struct.image.ImageBase>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ComputeRegionMeanColor.F32
Implementation for
GrayF32 |
static class |
ComputeRegionMeanColor.PL_F32
Implementation for
Planar |
static class |
ComputeRegionMeanColor.PL_U8
Implementation for
Planar |
static class |
ComputeRegionMeanColor.U8
Implementation for
GrayU8 |
| Constructor and Description |
|---|
ComputeRegionMeanColor(int numBands)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addPixelValue(int index,
float[] sum)
Image type specific implementation.
|
void |
process(T image,
boofcv.struct.image.GrayS32 pixelToRegion,
org.ddogleg.struct.GrowQueue_I32 regionMemberCount,
org.ddogleg.struct.FastQueue<float[]> regionColor)
Compute the average color for each region
|
public ComputeRegionMeanColor(int numBands)
numBands - Number of bands in the color imagepublic void process(T image, boofcv.struct.image.GrayS32 pixelToRegion, org.ddogleg.struct.GrowQueue_I32 regionMemberCount, org.ddogleg.struct.FastQueue<float[]> regionColor)
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.protected abstract void addPixelValue(int index,
float[] sum)
index - Pixel index in the image which is being readsum - Where the pixel's value is added to