Regroup multiple strategies for the selective search segmentation algorithm.
More...
#include <opencv2/ximgproc/segmentation.hpp>
|
virtual void | addStrategy (Ptr< SelectiveSearchSegmentationStrategy > g, float weight)=0 |
| Add a new sub-strategy.
|
|
virtual void | clearStrategies ()=0 |
| Remove all sub-strategies.
|
|
virtual float | get (int r1, int r2)=0 |
| Return the score between two regions (between 0 and 1)
|
|
virtual void | merge (int r1, int r2)=0 |
| Inform the strategy that two regions will be merged.
|
|
virtual void | setImage (InputArray img, InputArray regions, InputArray sizes, int image_id=-1)=0 |
| Set a initial image, with a segementation.
|
|
| 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 |
|
virtual void | write (FileStorage &fs) const |
| Stores algorithm parameters in a file storage.
|
|
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
| simplified API for language bindingsThis is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
Regroup multiple strategies for the selective search segmentation algorithm.
Python: |
---|
| None | = | cv.ximgproc_segmentation_SelectiveSearchSegmentationStrategyMultiple.addStrategy( | g, weight | ) |
Add a new sub-strategy.
- Parameters
-
g | The strategy |
weight | The weight of the strategy |
virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyMultiple::clearStrategies |
( |
| ) |
|
|
pure virtual |
Python: |
---|
| None | = | cv.ximgproc_segmentation_SelectiveSearchSegmentationStrategyMultiple.clearStrategies( | | ) |
Remove all sub-strategies.
The documentation for this class was generated from the following file: