Class cv::ximgproc::segmentation::SelectiveSearchSegmentation#
Selective search segmentation algorithm The class implements the algorithm described in [313].
#include <opencv2/ximgproc/segmentation.hpp>Collaboration diagram for cv::ximgproc::segmentation::SelectiveSearchSegmentation:
Public Member Functions#
Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Clears the algorithm state. |
|
|
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
|
|
|
Stores algorithm parameters in a file storage. |
|
|
Static Public Member Functions#
Static Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
|
Loads algorithm from the file. |
|
|
Loads algorithm from a String. |
|
Reads algorithm from the file node. |
Additional Inherited Members#
Protected Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
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 segmentationinc_k— The increment of the k parameter for all graph segmentationssigma— 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 segmentationinc_k— The increment of the k parameter for all graph segmentationssigma— 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 segmentationsigma— The sigma parameter for the graph segmentation
Source file#
The documentation for this class was generated from the following file:
opencv2/ximgproc/segmentation.hpp