Class cv::ximgproc::segmentation::SelectiveSearchSegmentation#

Selective search segmentation algorithm The class implements the algorithm described in [313].

Collaboration diagram for cv::ximgproc::segmentation::SelectiveSearchSegmentation:

Public Member Functions#

Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Detailed Description#

Selective search segmentation algorithm The class implements the algorithm described in [313].

Member Function Documentation#

addGraphSegmentation()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addGraphSegmentation(Ptr< GraphSegmentation > g)

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

Parameters

  • g — The graph segmentation

addImage()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addImage(InputArray img)

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

Parameters

  • img — The image

addStrategy()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addStrategy(Ptr< SelectiveSearchSegmentationStrategy > s)

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

Parameters

  • s — The strategy

clearGraphSegmentations()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearGraphSegmentations()

Clear the list of graph segmentations to process;.

clearImages()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearImages()

Clear the list of images to process.

clearStrategies()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearStrategies()

Clear the list of strategy to process;.

process()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::process(std::vector< Rect > & rects)

Based on all images, graph segmentations and stragies, computes all possible rects and return them.

Parameters

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

setBaseImage()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::setBaseImage(InputArray img)

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

Parameters

  • img — The image

switchToSelectiveSearchFast()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSelectiveSearchFast(
int base_k = 150,
int inc_k = 150,
float sigma = 0.8f )

Initialize the class with the ‘Selective search fast’ parameters describled in [313].

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

switchToSelectiveSearchQuality()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSelectiveSearchQuality(
int base_k = 150,
int inc_k = 150,
float sigma = 0.8f )

Initialize the class with the ‘Selective search fast’ parameters describled in [313].

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

switchToSingleStrategy()#

void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSingleStrategy(
int k = 200,
float sigma = 0.8f )

Initialize the class with the ‘Single stragegy’ parameters describled in [313].

Parameters

  • k — The k parameter for the graph segmentation

  • sigma — The sigma parameter for the graph segmentation

Source file#

The documentation for this class was generated from the following file: