boofcv.alg.segmentation.ms
Class MergeRegionMeanShift
- java.lang.Object
-
- boofcv.alg.segmentation.ms.RegionMergeTree
-
- boofcv.alg.segmentation.ms.MergeRegionMeanShift
-
public class MergeRegionMeanShift extends RegionMergeTree
Merges together regions which have modes close to each other and have a similar color.
-
-
Constructor Summary
Constructors Constructor and Description MergeRegionMeanShift(int maxSpacialDistance, float maxColorDistance)Configures MergeRegionMeanShift
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidprocess(GrayS32 pixelToRegion, GrowQueue_I32 regionMemberCount, FastQueue<float[]> regionColor, FastQueue<Point2D_I32> modeLocation)Merges together similar regions which are in close proximity to each other.-
Methods inherited from class boofcv.alg.segmentation.ms.RegionMergeTree
initializeMerge, performMerge
-
-
-
-
Constructor Detail
-
MergeRegionMeanShift
public MergeRegionMeanShift(int maxSpacialDistance, float maxColorDistance)Configures MergeRegionMeanShift- Parameters:
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.
-
-
Method Detail
-
process
public void process(GrayS32 pixelToRegion, GrowQueue_I32 regionMemberCount, FastQueue<float[]> regionColor, FastQueue<Point2D_I32> modeLocation)
Merges together similar regions which are in close proximity to each other. After merging most of the input data structures are modified to take in account the changes.- Parameters:
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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG