GraphSegmentation
Graph Based Segmentation Algorithm. The class implements the algorithm described in CITE: PFF2004 .
Member of Ximgproc
-
Declaration
Objective-C
- (double)getSigma NS_SWIFT_NAME(getSigma());
Swift
func getSigma() -> Double
-
Declaration
Objective-C
- (float)getK NS_SWIFT_NAME(getK());
Swift
func getK() -> Float
-
Declaration
Objective-C
- (int)getMinSize NS_SWIFT_NAME(getMinSize());
Swift
func getMinSize() -> Int32
-
Segment an image and store output in dst
Declaration
Parameters
src
The input image. Any number of channel (1 (Eg: Gray), 3 (Eg: RGB), 4 (Eg: RGB-D)) can be provided
dst
The output segmentation. It’s a CV_32SC1 Mat with the same number of cols and rows as input image, with an unique, sequential, id for each pixel.
-
Declaration
Objective-C
- (void)setK:(float)k NS_SWIFT_NAME(setK(k:));
Swift
func setK(k: Float)
-
Declaration
Objective-C
- (void)setMinSize:(int)min_size NS_SWIFT_NAME(setMinSize(min_size:));
Swift
func setMinSize(min_size: Int32)
-
Declaration
Objective-C
- (void)setSigma:(double)sigma NS_SWIFT_NAME(setSigma(sigma:));
Swift
func setSigma(sigma: Double)