Image segmentationExtended Image Processing
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
| | Selective search segmentation algorithm The class implements the algorithm described in [283]. More...
|
| | Strategie for the selective search segmentation algorithm The class implements a generic stragery for the algorithm described in [283]. More...
|
| | Color-based strategy for the selective search segmentation algorithm The class is implemented from the algorithm described in [283]. More...
|
| | Fill-based strategy for the selective search segmentation algorithm The class is implemented from the algorithm described in [283]. More...
|
| | Regroup multiple strategies for the selective search segmentation algorithm. More...
|
| | Size-based strategy for the selective search segmentation algorithm The class is implemented from the algorithm described in [283]. More...
|
| | Texture-based strategy for the selective search segmentation algorithm The class is implemented from the algorithm described in [283]. More...
|
Functions |
| Ptr< GraphSegmentation > | cv::ximgproc::segmentation::createGraphSegmentation (double sigma=0.5, float k=300, int min_size=100) |
| | Creates a graph based segmentor.
|
| |
| Ptr< SelectiveSearchSegmentation > | cv::ximgproc::segmentation::createSelectiveSearchSegmentation () |
| | Create a new SelectiveSearchSegmentation class.
|
| |
| Ptr< SelectiveSearchSegmentationStrategyColor > | cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyColor () |
| | Create a new color-based strategy.
|
| |
| Ptr< SelectiveSearchSegmentationStrategyFill > | cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyFill () |
| | Create a new fill-based strategy.
|
| |
| Ptr< SelectiveSearchSegmentationStrategyMultiple > | cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple () |
| | Create a new multiple strategy.
|
| |
| Ptr< SelectiveSearchSegmentationStrategyMultiple > | cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple (Ptr< SelectiveSearchSegmentationStrategy > s1) |
| | Create a new multiple strategy and set one subtrategy.
|
| |
| Ptr< SelectiveSearchSegmentationStrategyMultiple > | cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple (Ptr< SelectiveSearchSegmentationStrategy > s1, Ptr< SelectiveSearchSegmentationStrategy > s2) |
| | Create a new multiple strategy and set two subtrategies, with equal weights.
|
| |
| Ptr< SelectiveSearchSegmentationStrategyMultiple > | cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple (Ptr< SelectiveSearchSegmentationStrategy > s1, Ptr< SelectiveSearchSegmentationStrategy > s2, Ptr< SelectiveSearchSegmentationStrategy > s3) |
| | Create a new multiple strategy and set three subtrategies, with equal weights.
|
| |
| Ptr< SelectiveSearchSegmentationStrategyMultiple > | cv::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.
|
| |
| Ptr< SelectiveSearchSegmentationStrategySize > | cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategySize () |
| | Create a new size-based strategy.
|
| |
| Ptr< SelectiveSearchSegmentationStrategyTexture > | cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyTexture () |
| | Create a new size-based strategy.
|
| |
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
-
| sigma | The sigma parameter, used to smooth image |
| k | The k parameter of the algorythm |
| min_size | The minimum size of segments |
createSelectiveSearchSegmentation()
| Python: |
|---|
| cv.ximgproc.segmentation.createSelectiveSearchSegmentation( | | ) -> | retval |
createSelectiveSearchSegmentationStrategyColor()
| Python: |
|---|
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyColor( | | ) -> | retval |
createSelectiveSearchSegmentationStrategyFill()
| Python: |
|---|
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyFill( | | ) -> | retval |
createSelectiveSearchSegmentationStrategyMultiple() [1/5]
| 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 |
createSelectiveSearchSegmentationStrategyMultiple() [2/5]
| 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 |
createSelectiveSearchSegmentationStrategyMultiple() [3/5]
| Python: |
|---|
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1 | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1, s2 | ) -> |
#include <opencv2/ximgproc/segmentation.hpp>
Create a new multiple strategy and set two subtrategies, with equal weights.
- Parameters
-
| s1 | The first strategy |
| s2 | The second strategy |
createSelectiveSearchSegmentationStrategyMultiple() [4/5]
| Python: |
|---|
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1 | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1, s2 | ) -> |
#include <opencv2/ximgproc/segmentation.hpp>
Create a new multiple strategy and set three subtrategies, with equal weights.
- Parameters
-
| s1 | The first strategy |
| s2 | The second strategy |
| s3 | The third strategy |
createSelectiveSearchSegmentationStrategyMultiple() [5/5]
| Python: |
|---|
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1 | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1, s2 | ) -> |
#include <opencv2/ximgproc/segmentation.hpp>
Create a new multiple strategy and set four subtrategies, with equal weights.
- Parameters
-
| s1 | The first strategy |
| s2 | The second strategy |
| s3 | The third strategy |
| s4 | The forth strategy |
createSelectiveSearchSegmentationStrategySize()
| Python: |
|---|
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategySize( | | ) -> | retval |
createSelectiveSearchSegmentationStrategyTexture()
| Python: |
|---|
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyTexture( | | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1, s2, s3 | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1, s2, s3, s4 | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1, s2, s3 | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1, s2, s3, s4 | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1, s2, s3 | ) -> | retval |
| cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple( | s1, s2, s3, s4 | ) -> | retval |