Documentation of 'boofcv.alg.segmentation.ms.MergeRegionMeanShift' Java class
MergeRegionMeanShift
boofcv.alg.segmentation.ms

Class MergeRegionMeanShift



  • public class MergeRegionMeanShift
    extends RegionMergeTree
    Merges together regions which have modes close to each other and have a similar color.
    • 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

You see the box below because you did not login.