imseggeodesic
Segment image into two or three regions using geodesic distance-based color segmentation
Syntax
Description
L = imseggeodesic(RGB,BW1,BW2)RGB, returning a
                                segmented binary image with labels L.
                                        BW1 and BW2 are
                                binary images that specify the location of the initial seed regions,
                                called scribbles, for the two regions
                                (foreground and background).
imseggeodesic uses the scribbles specified in
                                        BW1 and BW2 as
                                representative samples for computing the statistics for their
                                respective regions, which it then uses in segmentation. The
                                scribbles specified by BW1 and
                                        BW2 (regions that are logical true)
                                should not overlap. The underlying algorithm uses the statistics
                                estimated over the regions marked by the scribbles for segmentation.
                                The greater the number of pixels marked by scribbles, the more
                                accurate the estimation of the region statistics, which typically
                                leads to more accurate segmentation. Therefore, it is a good
                                practice to provide as many scribbles as possible. Typically,
                                provide at least a few hundred pixels as scribbles for each
                                region.
L = imseggeodesic(RGB,BW1,BW2,BW3)RGB, returning a
                                segmented image with three segments (trinary segmentation) with the
                                region labels specified by label matrix L.
                                        BW1, BW2, and
                                        BW3 are binary images that specify the
                                location of the initial seed regions or scribbles for the three
                                regions. The scribbles specified by BW1,
                                        BW2, and BW3
                                (regions that are logical true) should not
                                overlap.
L =
imseggeodesic(___,"AdaptiveChanneWeighting",tf)imseggeodesic
                                function performs the segmentation using adaptive channel weighting.
                                When you specify tf as true,
                                        imseggeodesic uses using adaptive
                                channel weighting. By default, the value of tf
                                is false and imseggeodesic
                                weights all the channels equally.
Examples
Input Arguments
Output Arguments
Tips
Algorithms
imseggeodesic uses a geodesic distance-based color segmentation algorithm
                        (similar to [1]). 
References
[1] A. Protiere and G. Sapiro, Interactive Image Segmentation via Adaptive Weighted Distances, IEEE Transactions on Image Processing. Volume 16, Issue 4, 2007.
Version History
Introduced in R2015a












