SelectiveSearchSegmentation

Objective-C

@interface SelectiveSearchSegmentation : Algorithm

Swift

class SelectiveSearchSegmentation : Algorithm

Selective search segmentation algorithm The class implements the algorithm described in CITE: uijlings2013selective.

Member of Ximgproc

Methods

  • Add a new graph segmentation in the list of graph segementations to process.

    Declaration

    Objective-C

    - (void)addGraphSegmentation:(nonnull GraphSegmentation *)g;

    Swift

    func addGraphSegmentation(g: GraphSegmentation)

    Parameters

    g

    The graph segmentation

  • Add a new image in the list of images to process.

    Declaration

    Objective-C

    - (void)addImage:(nonnull Mat *)img;

    Swift

    func addImage(img: Mat)

    Parameters

    img

    The image

  • Add a new strategy in the list of strategy to process.

    Declaration

    Objective-C

    - (void)addStrategy:(nonnull SelectiveSearchSegmentationStrategy *)s;

    Swift

    func addStrategy(s: SelectiveSearchSegmentationStrategy)

    Parameters

    s

    The strategy

  • Clear the list of graph segmentations to process;

    Declaration

    Objective-C

    - (void)clearGraphSegmentations;

    Swift

    func clearGraphSegmentations()
  • Clear the list of images to process

    Declaration

    Objective-C

    - (void)clearImages;

    Swift

    func clearImages()
  • Clear the list of strategy to process;

    Declaration

    Objective-C

    - (void)clearStrategies;

    Swift

    func clearStrategies()
  • Based on all images, graph segmentations and stragies, computes all possible rects and return them

    Declaration

    Objective-C

    - (void)process:(nonnull NSMutableArray<Rect2i *> *)rects;

    Swift

    func process(rects: NSMutableArray)

    Parameters

    rects

    The list of rects. The first ones are more relevents than the lasts ones.

  • Set a image used by switch* functions to initialize the class

    Declaration

    Objective-C

    - (void)setBaseImage:(nonnull Mat *)img;

    Swift

    func setBaseImage(img: Mat)

    Parameters

    img

    The image

  • Initialize the class with the ‘Selective search fast’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSelectiveSearchFast:(int)base_k
                                  inc_k:(int)inc_k
                                  sigma:(float)sigma;

    Swift

    func switchToSelectiveSearchFast(base_k: Int32, inc_k: Int32, sigma: Float)

    Parameters

    base_k

    The k parameter for the first graph segmentation

    inc_k

    The increment of the k parameter for all graph segmentations

    sigma

    The sigma parameter for the graph segmentation

  • Initialize the class with the ‘Selective search fast’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSelectiveSearchFast:(int)base_k inc_k:(int)inc_k;

    Swift

    func switchToSelectiveSearchFast(base_k: Int32, inc_k: Int32)

    Parameters

    base_k

    The k parameter for the first graph segmentation

    inc_k

    The increment of the k parameter for all graph segmentations

  • Initialize the class with the ‘Selective search fast’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSelectiveSearchFast:(int)base_k;

    Swift

    func switchToSelectiveSearchFast(base_k: Int32)

    Parameters

    base_k

    The k parameter for the first graph segmentation

  • Initialize the class with the ‘Selective search fast’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSelectiveSearchFast;

    Swift

    func switchToSelectiveSearchFast()
  • Initialize the class with the ‘Selective search fast’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSelectiveSearchQuality:(int)base_k
                                     inc_k:(int)inc_k
                                     sigma:(float)sigma;

    Swift

    func switchToSelectiveSearchQuality(base_k: Int32, inc_k: Int32, sigma: Float)

    Parameters

    base_k

    The k parameter for the first graph segmentation

    inc_k

    The increment of the k parameter for all graph segmentations

    sigma

    The sigma parameter for the graph segmentation

  • Initialize the class with the ‘Selective search fast’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSelectiveSearchQuality:(int)base_k inc_k:(int)inc_k;

    Swift

    func switchToSelectiveSearchQuality(base_k: Int32, inc_k: Int32)

    Parameters

    base_k

    The k parameter for the first graph segmentation

    inc_k

    The increment of the k parameter for all graph segmentations

  • Initialize the class with the ‘Selective search fast’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSelectiveSearchQuality:(int)base_k;

    Swift

    func switchToSelectiveSearchQuality(base_k: Int32)

    Parameters

    base_k

    The k parameter for the first graph segmentation

  • Initialize the class with the ‘Selective search fast’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSelectiveSearchQuality;

    Swift

    func switchToSelectiveSearchQuality()
  • Initialize the class with the ‘Single stragegy’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSingleStrategy:(int)k sigma:(float)sigma;

    Swift

    func switchToSingleStrategy(k: Int32, sigma: Float)

    Parameters

    k

    The k parameter for the graph segmentation

    sigma

    The sigma parameter for the graph segmentation

  • Initialize the class with the ‘Single stragegy’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSingleStrategy:(int)k;

    Swift

    func switchToSingleStrategy(k: Int32)

    Parameters

    k

    The k parameter for the graph segmentation

  • Initialize the class with the ‘Single stragegy’ parameters describled in CITE: uijlings2013selective.

    Declaration

    Objective-C

    - (void)switchToSingleStrategy;

    Swift

    func switchToSingleStrategy()