基於圖的分割 演算法。該類實現了 [88] 中描述的演算法。 更多...
#include <opencv2/ximgproc/segmentation.hpp>
基於圖的分割 演算法。該類實現了 [88] 中描述的演算法。
◆ getK()
| virtual float cv::ximgproc::segmentation::GraphSegmentation::getK |
( |
| ) |
|
|
純虛擬函式 |
| Python |
|---|
| cv.ximgproc.segmentation.GraphSegmentation.getK( | | ) -> | retval |
◆ getMinSize()
| virtual int cv::ximgproc::segmentation::GraphSegmentation::getMinSize |
( |
| ) |
|
|
純虛擬函式 |
| Python |
|---|
| cv.ximgproc.segmentation.GraphSegmentation.getMinSize( | | ) -> | retval |
◆ getSigma()
| virtual double cv::ximgproc::segmentation::GraphSegmentation::getSigma |
( |
| ) |
|
|
純虛擬函式 |
| Python |
|---|
| cv.ximgproc.segmentation.GraphSegmentation.getSigma( | | ) -> | retval |
◆ processImage()
| virtual void cv::ximgproc::segmentation::GraphSegmentation::processImage |
( |
InputArray | src, |
|
|
OutputArray | dst ) |
|
純虛擬函式 |
| Python |
|---|
| cv.ximgproc.segmentation.GraphSegmentation.processImage( | src[, dst] | ) -> | dst |
分割影像並將輸出儲存到 dst 中。
- 引數
-
| src | 輸入影像。可以提供任意數量的通道(1(例如:灰度),3(例如:RGB),4(例如:RGB-D)) |
| dst | 輸出分割。它是 CV_32SC1 Mat,具有與輸入影像相同數量的列和行,每個畫素都有一個唯一的、順序的 ID。 |
◆ setK()
| virtual void cv::ximgproc::segmentation::GraphSegmentation::setK |
( |
float | k | ) |
|
|
純虛擬函式 |
| Python |
|---|
| cv.ximgproc.segmentation.GraphSegmentation.setK( | k | ) -> | 無 |
◆ setMinSize()
| virtual void cv::ximgproc::segmentation::GraphSegmentation::setMinSize |
( |
int | min_size | ) |
|
|
純虛擬函式 |
| Python |
|---|
| cv.ximgproc.segmentation.GraphSegmentation.setMinSize( | min_size | ) -> | 無 |
◆ setSigma()
| virtual void cv::ximgproc::segmentation::GraphSegmentation::setSigma |
( |
double | sigma | ) |
|
|
純虛擬函式 |
| Python |
|---|
| cv.ximgproc.segmentation.GraphSegmentation.setSigma( | sigma | ) -> | 無 |
此類文件由以下檔案生成