選擇性搜尋分割演算法的策略。此類實現 [280] 中描述的演算法的通用策略。更多...
#include <opencv2/ximgproc/segmentation.hpp>
選擇性搜尋分割演算法的策略。此類實現 [280] 中描述的演算法的通用策略。
◆ get()
| virtual float cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy::get |
( |
int | r1, |
|
|
int | r2 ) |
|
純虛擬函式 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentationStrategy.get( | r1, r2 | ) -> | retval |
返回兩個區域之間的分數(介於 0 和 1 之間)
- 引數
-
◆ merge()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy::merge |
( |
int | r1, |
|
|
int | r2 ) |
|
純虛擬函式 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentationStrategy.merge( | r1, r2 | ) -> | 無 |
◆ setImage()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy::setImage |
( |
InputArray | img, |
|
|
InputArray | regions, |
|
|
InputArray | sizes, |
|
|
int | image_id = -1 ) |
|
純虛擬函式 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentationStrategy.setImage( | img, regions, sizes[, image_id] | ) -> | 無 |
設定初始影像,以及分割。
- 引數
-
| img | 輸入影像。可以提供任意數量的通道 |
| regions | 影像的分割。該引數必須與 img 的大小相同。 |
| sizes | 不同區域的大小 |
| image_id | 如果未設定為 -1,請嘗試快取預計算。如果使用相同的 (img, regions, size) 集合,則 image_id 需要相同。 |
此類文件由以下檔案生成