SelectiveSearchSegmentationStrategy
Objective-C
@interface SelectiveSearchSegmentationStrategy : Algorithm
Swift
class SelectiveSearchSegmentationStrategy : Algorithm
Strategie for the selective search segmentation algorithm The class implements a generic stragery for the algorithm described in CITE: uijlings2013selective.
Member of Ximgproc
-
Return the score between two regions (between 0 and 1)
Declaration
Objective-C
- (float)get:(int)r1 r2:(int)r2;Swift
func get(r1: Int32, r2: Int32) -> FloatParameters
r1The first region
r2The second region
-
Inform the strategy that two regions will be merged
Declaration
Objective-C
- (void)merge:(int)r1 r2:(int)r2;Swift
func merge(r1: Int32, r2: Int32)Parameters
r1The first region
r2The second region
-
Set a initial image, with a segmentation.
Declaration
Parameters
imgThe input image. Any number of channel can be provided
regionsA segmentation of the image. The parameter must be the same size of img.
sizesThe sizes of different regions
image_idIf not set to -1, try to cache pre-computations. If the same set og (img, regions, size) is used, the image_id need to be the same.
-
Set a initial image, with a segmentation.
Declaration
Parameters
imgThe input image. Any number of channel can be provided
regionsA segmentation of the image. The parameter must be the same size of img.
sizesThe sizes of different regions
View on GitHub
SelectiveSearchSegmentationStrategy Class Reference