Graph Based Segmentation Algorithm. The class implements the algorithm described in [66] .
More...
#include <opencv2/ximgproc/segmentation.hpp>
Graph Based Segmentation Algorithm. The class implements the algorithm described in [66] .
◆ getK()
virtual float cv::ximgproc::segmentation::GraphSegmentation::getK |
( |
| ) |
|
|
pure virtual |
Python: |
---|
| retval | = | cv.ximgproc_segmentation_GraphSegmentation.getK( | | ) |
◆ getMinSize()
virtual int cv::ximgproc::segmentation::GraphSegmentation::getMinSize |
( |
| ) |
|
|
pure virtual |
Python: |
---|
| retval | = | cv.ximgproc_segmentation_GraphSegmentation.getMinSize( | | ) |
◆ getSigma()
virtual double cv::ximgproc::segmentation::GraphSegmentation::getSigma |
( |
| ) |
|
|
pure virtual |
Python: |
---|
| retval | = | cv.ximgproc_segmentation_GraphSegmentation.getSigma( | | ) |
◆ processImage()
virtual void cv::ximgproc::segmentation::GraphSegmentation::processImage |
( |
InputArray |
src, |
|
|
OutputArray |
dst |
|
) |
| |
|
pure virtual |
Python: |
---|
| dst | = | cv.ximgproc_segmentation_GraphSegmentation.processImage( | src[, dst] | ) |
Segment an image and store output in dst.
- Parameters
-
src | The input image. Any number of channel (1 (Eg: Gray), 3 (Eg: RGB), 4 (Eg: RGB-D)) can be provided |
dst | The output segmentation. It's a CV_32SC1 Mat with the same number of cols and rows as input image, with an unique, sequential, id for each pixel. |
◆ setK()
virtual void cv::ximgproc::segmentation::GraphSegmentation::setK |
( |
float |
k | ) |
|
|
pure virtual |
Python: |
---|
| None | = | cv.ximgproc_segmentation_GraphSegmentation.setK( | k | ) |
◆ setMinSize()
virtual void cv::ximgproc::segmentation::GraphSegmentation::setMinSize |
( |
int |
min_size | ) |
|
|
pure virtual |
Python: |
---|
| None | = | cv.ximgproc_segmentation_GraphSegmentation.setMinSize( | min_size | ) |
◆ setSigma()
virtual void cv::ximgproc::segmentation::GraphSegmentation::setSigma |
( |
double |
sigma | ) |
|
|
pure virtual |
Python: |
---|
| None | = | cv.ximgproc_segmentation_GraphSegmentation.setSigma( | sigma | ) |
The documentation for this class was generated from the following file: