public class MergeRegionMeanShift extends RegionMergeTree
mergeList, rootID, tmpMemberCount| Constructor and Description |
|---|
MergeRegionMeanShift(int maxSpacialDistance,
float maxColorDistance)
Configures MergeRegionMeanShift
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
markMergeRegions(org.ddogleg.struct.FastQueue<float[]> regionColor,
org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_I32> modeLocation,
boofcv.struct.image.GrayS32 pixelToRegion)
Takes the mode of a region and searches the local area around it for other regions.
|
void |
process(boofcv.struct.image.GrayS32 pixelToRegion,
org.ddogleg.struct.GrowQueue_I32 regionMemberCount,
org.ddogleg.struct.FastQueue<float[]> regionColor,
org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_I32> modeLocation)
Merges together similar regions which are in close proximity to each other.
|
flowIntoRootNode, initializeMerge, markMerge, performMerge, setToRootNodeNewIDpublic MergeRegionMeanShift(int maxSpacialDistance,
float maxColorDistance)
maxSpacialDistance - The maximum spacial distance (pixels) at which two modes can be for their
regions to be merged together.maxColorDistance - The maximum Euclidean distance two colors can be from each other for them to be merged.public void process(boofcv.struct.image.GrayS32 pixelToRegion,
org.ddogleg.struct.GrowQueue_I32 regionMemberCount,
org.ddogleg.struct.FastQueue<float[]> regionColor,
org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_I32> modeLocation)
pixelToRegion - (Input/output) Image that specifies the segmentation. Modified.regionMemberCount - (Input/output) Number of pixels in each region. Modified.regionColor - (Input/output) Color of each region. Modified.modeLocation - (Input) Location of each region's mode. Not modified.protected void markMergeRegions(org.ddogleg.struct.FastQueue<float[]> regionColor,
org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_I32> modeLocation,
boofcv.struct.image.GrayS32 pixelToRegion)