32#ifndef __OPENCV_XIMGPROC_SEGMENTATION_HPP__
33#define __OPENCV_XIMGPROC_SEGMENTATION_HPP__
35#include <opencv2/core.hpp>
39 namespace segmentation {
52 CV_WRAP
virtual void processImage(InputArray src,
OutputArray dst) = 0;
54 CV_WRAP
virtual void setSigma(
double sigma) = 0;
55 CV_WRAP
virtual double getSigma() = 0;
57 CV_WRAP
virtual void setK(
float k) = 0;
58 CV_WRAP
virtual float getK() = 0;
60 CV_WRAP
virtual void setMinSize(
int min_size) = 0;
61 CV_WRAP
virtual int getMinSize() = 0;
82 CV_WRAP
virtual void setImage(InputArray img, InputArray regions, InputArray sizes,
int image_id = -1) = 0;
88 CV_WRAP
virtual float get(
int r1,
int r2) = 0;
94 CV_WRAP
virtual void merge(
int r1,
int r2) = 0;
145 CV_WRAP
virtual void clearStrategies() = 0;
187 CV_WRAP
virtual void setBaseImage(InputArray img) = 0;
193 CV_WRAP
virtual void switchToSingleStrategy(
int k = 200,
float sigma = 0.8f) = 0;
200 CV_WRAP
virtual void switchToSelectiveSearchFast(
int base_k = 150,
int inc_k = 150,
float sigma = 0.8f) = 0;
207 CV_WRAP
virtual void switchToSelectiveSearchQuality(
int base_k = 150,
int inc_k = 150,
float sigma = 0.8f) = 0;
212 CV_WRAP
virtual void addImage(InputArray img) = 0;
216 CV_WRAP
virtual void clearImages() = 0;
225 CV_WRAP
virtual void clearGraphSegmentations() = 0;
234 CV_WRAP
virtual void clearStrategies() = 0;
239 CV_WRAP
virtual void process(CV_OUT std::vector<Rect>& rects) = 0;
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
This is a base class for all more or less complex algorithms in OpenCV
Definition: core.hpp:3091
Graph Based Segmentation Algorithm. The class implements the algorithm described in .
Definition: ximgproc/segmentation.hpp:46
Selective search segmentation algorithm The class implements the algorithm described in .
Definition: ximgproc/segmentation.hpp:181
Color-based strategy for the selective search segmentation algorithm The class is implemented from th...
Definition: ximgproc/segmentation.hpp:100
Fill-based strategy for the selective search segmentation algorithm The class is implemented from the...
Definition: ximgproc/segmentation.hpp:127
Strategie for the selective search segmentation algorithm The class implements a generic stragery for...
Definition: ximgproc/segmentation.hpp:74
Regroup multiple strategies for the selective search segmentation algorithm
Definition: ximgproc/segmentation.hpp:135
Size-based strategy for the selective search segmentation algorithm The class is implemented from the...
Definition: ximgproc/segmentation.hpp:109
Texture-based strategy for the selective search segmentation algorithm The class is implemented from ...
Definition: ximgproc/segmentation.hpp:118
CV_EXPORTS void merge(const Mat *mv, size_t count, OutputArray dst)
Creates one multi-channel array out of several single-channel ones.
CV_EXPORTS_W Ptr< SelectiveSearchSegmentationStrategyTexture > createSelectiveSearchSegmentationStrategyTexture()
Create a new size-based strategy
CV_EXPORTS_W Ptr< SelectiveSearchSegmentationStrategyMultiple > createSelectiveSearchSegmentationStrategyMultiple(Ptr< SelectiveSearchSegmentationStrategy > s1, Ptr< SelectiveSearchSegmentationStrategy > s2, Ptr< SelectiveSearchSegmentationStrategy > s3, Ptr< SelectiveSearchSegmentationStrategy > s4)
Create a new multiple strategy and set four subtrategies, with equal weights
CV_EXPORTS_W Ptr< SelectiveSearchSegmentationStrategyColor > createSelectiveSearchSegmentationStrategyColor()
Create a new color-based strategy
CV_EXPORTS_W Ptr< SelectiveSearchSegmentationStrategyFill > createSelectiveSearchSegmentationStrategyFill()
Create a new fill-based strategy
CV_EXPORTS_W Ptr< GraphSegmentation > createGraphSegmentation(double sigma=0.5, float k=300, int min_size=100)
Creates a graph based segmentor
CV_EXPORTS_W Ptr< SelectiveSearchSegmentation > createSelectiveSearchSegmentation()
Create a new SelectiveSearchSegmentation class.
CV_EXPORTS_W Ptr< SelectiveSearchSegmentationStrategySize > createSelectiveSearchSegmentationStrategySize()
Create a new size-based strategy
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74