选择性搜索分割算法的策略。此类实现 [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 需要相同。 |
此类文档由以下文件生成