Selective search segmentation algorithm The class implements the algorithm described in [uijlings2013selective].
More...
#include <opencv2/ximgproc/segmentation.hpp>
|
virtual void | addGraphSegmentation (Ptr< GraphSegmentation > g)=0 |
| Add a new graph segmentation in the list of graph segementations to process.
|
|
virtual void | addImage (InputArray img)=0 |
| Add a new image in the list of images to process.
|
|
virtual void | addStrategy (Ptr< SelectiveSearchSegmentationStrategy > s)=0 |
| Add a new strategy in the list of strategy to process.
|
|
virtual void | clearGraphSegmentations ()=0 |
| Clear the list of graph segmentations to process;.
|
|
virtual void | clearImages ()=0 |
| Clear the list of images to process.
|
|
virtual void | clearStrategies ()=0 |
| Clear the list of strategy to process;.
|
|
virtual void | process (std::vector< Rect > &rects)=0 |
| Based on all images, graph segmentations and stragies, computes all possible rects and return them.
|
|
virtual void | setBaseImage (InputArray img)=0 |
| Set a image used by switch* functions to initialize the class.
|
|
virtual void | switchToSelectiveSearchFast (int base_k=150, int inc_k=150, float sigma=0.8f)=0 |
| Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].
|
|
virtual void | switchToSelectiveSearchQuality (int base_k=150, int inc_k=150, float sigma=0.8f)=0 |
| Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].
|
|
virtual void | switchToSingleStrategy (int k=200, float sigma=0.8f)=0 |
| Initialize the class with the 'Single stragegy' parameters describled in [uijlings2013selective].
|
|
| Algorithm () |
|
virtual | ~Algorithm () |
|
virtual void | clear () |
| Clears the algorithm state.
|
|
virtual bool | empty () const |
| Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
|
|
virtual String | getDefaultName () const |
|
virtual void | read (const FileNode &fn) |
| Reads algorithm parameters from a file storage.
|
|
virtual void | save (const String &filename) const |
|
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
| simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
virtual void | write (FileStorage &fs) const |
| Stores algorithm parameters in a file storage.
|
|
Selective search segmentation algorithm The class implements the algorithm described in [uijlings2013selective].
◆ addGraphSegmentation()
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addGraphSegmentation |
( |
Ptr< GraphSegmentation > |
g | ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.addGraphSegmentation( | g | ) -> | None |
Add a new graph segmentation in the list of graph segementations to process.
- Parameters
-
◆ addImage()
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addImage |
( |
InputArray |
img | ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.addImage( | img | ) -> | None |
Add a new image in the list of images to process.
- Parameters
-
◆ addStrategy()
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.addStrategy( | s | ) -> | None |
Add a new strategy in the list of strategy to process.
- Parameters
-
◆ clearGraphSegmentations()
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearGraphSegmentations |
( |
| ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.clearGraphSegmentations( | | ) -> | None |
Clear the list of graph segmentations to process;.
◆ clearImages()
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearImages |
( |
| ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.clearImages( | | ) -> | None |
Clear the list of images to process.
◆ clearStrategies()
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearStrategies |
( |
| ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.clearStrategies( | | ) -> | None |
Clear the list of strategy to process;.
◆ process()
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::process |
( |
std::vector< Rect > & |
rects | ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.process( | | ) -> | 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()
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::setBaseImage |
( |
InputArray |
img | ) |
|
|
pure virtual |
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.setBaseImage( | img | ) -> | None |
Set a image used by switch* functions to initialize the class.
- Parameters
-
◆ switchToSelectiveSearchFast()
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSelectiveSearchFast |
( |
int |
base_k = 150 , |
|
|
int |
inc_k = 150 , |
|
|
float |
sigma = 0.8f |
|
) |
| |
|
pure virtual |
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.switchToSelectiveSearchFast( | [, base_k[, inc_k[, sigma]]] | ) -> | None |
Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].
- 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()
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSelectiveSearchQuality |
( |
int |
base_k = 150 , |
|
|
int |
inc_k = 150 , |
|
|
float |
sigma = 0.8f |
|
) |
| |
|
pure virtual |
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.switchToSelectiveSearchQuality( | [, base_k[, inc_k[, sigma]]] | ) -> | None |
Initialize the class with the 'Selective search fast' parameters describled in [uijlings2013selective].
- 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()
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSingleStrategy |
( |
int |
k = 200 , |
|
|
float |
sigma = 0.8f |
|
) |
| |
|
pure virtual |
Python: |
---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.switchToSingleStrategy( | [, k[, sigma]] | ) -> | None |
Initialize the class with the 'Single stragegy' parameters describled in [uijlings2013selective].
- Parameters
-
k | The k parameter for the graph segmentation |
sigma | The sigma parameter for the graph segmentation |
The documentation for this class was generated from the following file: