OpenCV  3.4.20-dev
Open Source Computer Vision
Classes | Functions
Image segmentation

Classes

class  cv::ximgproc::segmentation::GraphSegmentation
 Graph Based Segmentation Algorithm. The class implements the algorithm described in [71] . More...
 
class  cv::ximgproc::segmentation::SelectiveSearchSegmentation
 Selective search segmentation algorithm The class implements the algorithm described in [219]. More...
 
class  cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy
 Strategie for the selective search segmentation algorithm The class implements a generic stragery for the algorithm described in [219]. More...
 
class  cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyColor
 Color-based strategy for the selective search segmentation algorithm The class is implemented from the algorithm described in [219]. More...
 
class  cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyFill
 Fill-based strategy for the selective search segmentation algorithm The class is implemented from the algorithm described in [219]. More...
 
class  cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyMultiple
 Regroup multiple strategies for the selective search segmentation algorithm. More...
 
class  cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategySize
 Size-based strategy for the selective search segmentation algorithm The class is implemented from the algorithm described in [219]. More...
 
class  cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyTexture
 Texture-based strategy for the selective search segmentation algorithm The class is implemented from the algorithm described in [219]. More...
 

Functions

Ptr< GraphSegmentationcv::ximgproc::segmentation::createGraphSegmentation (double sigma=0.5, float k=300, int min_size=100)
 Creates a graph based segmentor. More...
 
Ptr< SelectiveSearchSegmentationcv::ximgproc::segmentation::createSelectiveSearchSegmentation ()
 Create a new SelectiveSearchSegmentation class. More...
 
Ptr< SelectiveSearchSegmentationStrategyColorcv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyColor ()
 Create a new color-based strategy. More...
 
Ptr< SelectiveSearchSegmentationStrategyFillcv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyFill ()
 Create a new fill-based strategy. More...
 
Ptr< SelectiveSearchSegmentationStrategyMultiplecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple ()
 Create a new multiple strategy. More...
 
Ptr< SelectiveSearchSegmentationStrategyMultiplecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple (Ptr< SelectiveSearchSegmentationStrategy > s1)
 Create a new multiple strategy and set one subtrategy. More...
 
Ptr< SelectiveSearchSegmentationStrategyMultiplecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple (Ptr< SelectiveSearchSegmentationStrategy > s1, Ptr< SelectiveSearchSegmentationStrategy > s2)
 Create a new multiple strategy and set two subtrategies, with equal weights. More...
 
Ptr< SelectiveSearchSegmentationStrategyMultiplecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple (Ptr< SelectiveSearchSegmentationStrategy > s1, Ptr< SelectiveSearchSegmentationStrategy > s2, Ptr< SelectiveSearchSegmentationStrategy > s3)
 Create a new multiple strategy and set three subtrategies, with equal weights. More...
 
Ptr< SelectiveSearchSegmentationStrategyMultiplecv::ximgproc::segmentation::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. More...
 
Ptr< SelectiveSearchSegmentationStrategySizecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategySize ()
 Create a new size-based strategy. More...
 
Ptr< SelectiveSearchSegmentationStrategyTexturecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyTexture ()
 Create a new size-based strategy. More...
 

Detailed Description

Function Documentation

◆ createGraphSegmentation()

Ptr<GraphSegmentation> cv::ximgproc::segmentation::createGraphSegmentation ( double  sigma = 0.5,
float  k = 300,
int  min_size = 100 
)
Python:
cv.ximgproc.segmentation.createGraphSegmentation([, sigma[, k[, min_size]]]) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

Creates a graph based segmentor.

Parameters
sigmaThe sigma parameter, used to smooth image
kThe k parameter of the algorythm
min_sizeThe minimum size of segments

◆ createSelectiveSearchSegmentation()

Ptr<SelectiveSearchSegmentation> cv::ximgproc::segmentation::createSelectiveSearchSegmentation ( )
Python:
cv.ximgproc.segmentation.createSelectiveSearchSegmentation() -> retval

◆ createSelectiveSearchSegmentationStrategyColor()

Ptr<SelectiveSearchSegmentationStrategyColor> cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyColor ( )
Python:
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyColor() -> retval

#include <opencv2/ximgproc/segmentation.hpp>

Create a new color-based strategy.

◆ createSelectiveSearchSegmentationStrategyFill()

Ptr<SelectiveSearchSegmentationStrategyFill> cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyFill ( )
Python:
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyFill() -> retval

#include <opencv2/ximgproc/segmentation.hpp>

Create a new fill-based strategy.

◆ createSelectiveSearchSegmentationStrategyMultiple() [1/5]

Ptr<SelectiveSearchSegmentationStrategyMultiple> cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple ( )
Python:
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple() -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

Create a new multiple strategy.

◆ createSelectiveSearchSegmentationStrategyMultiple() [2/5]

Ptr<SelectiveSearchSegmentationStrategyMultiple> cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple ( Ptr< SelectiveSearchSegmentationStrategy s1)
Python:
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple() -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

Create a new multiple strategy and set one subtrategy.

Parameters
s1The first strategy

◆ createSelectiveSearchSegmentationStrategyMultiple() [3/5]

Ptr<SelectiveSearchSegmentationStrategyMultiple> cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple ( Ptr< SelectiveSearchSegmentationStrategy s1,
Ptr< SelectiveSearchSegmentationStrategy s2 
)
Python:
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple() -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

Create a new multiple strategy and set two subtrategies, with equal weights.

Parameters
s1The first strategy
s2The second strategy

◆ createSelectiveSearchSegmentationStrategyMultiple() [4/5]

Ptr<SelectiveSearchSegmentationStrategyMultiple> cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple ( Ptr< SelectiveSearchSegmentationStrategy s1,
Ptr< SelectiveSearchSegmentationStrategy s2,
Ptr< SelectiveSearchSegmentationStrategy s3 
)
Python:
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple() -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

Create a new multiple strategy and set three subtrategies, with equal weights.

Parameters
s1The first strategy
s2The second strategy
s3The third strategy

◆ createSelectiveSearchSegmentationStrategyMultiple() [5/5]

Ptr<SelectiveSearchSegmentationStrategyMultiple> cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple ( Ptr< SelectiveSearchSegmentationStrategy s1,
Ptr< SelectiveSearchSegmentationStrategy s2,
Ptr< SelectiveSearchSegmentationStrategy s3,
Ptr< SelectiveSearchSegmentationStrategy s4 
)
Python:
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple() -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

Create a new multiple strategy and set four subtrategies, with equal weights.

Parameters
s1The first strategy
s2The second strategy
s3The third strategy
s4The forth strategy

◆ createSelectiveSearchSegmentationStrategySize()

Ptr<SelectiveSearchSegmentationStrategySize> cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategySize ( )
Python:
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategySize() -> retval

#include <opencv2/ximgproc/segmentation.hpp>

Create a new size-based strategy.

◆ createSelectiveSearchSegmentationStrategyTexture()

Ptr<SelectiveSearchSegmentationStrategyTexture> cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyTexture ( )
Python:
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyTexture() -> retval

#include <opencv2/ximgproc/segmentation.hpp>

Create a new size-based strategy.