选择性搜索分割算法。该类实现了 [280] 中描述的算法。 更多...
#include <opencv2/ximgproc/segmentation.hpp>
选择性搜索分割算法。该类实现了 [280] 中描述的算法。
◆ addGraphSegmentation()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addGraphSegmentation |
( |
Ptr< GraphSegmentation > | g | ) |
|
|
纯虚函数 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.addGraphSegmentation( | g | ) -> | 无 |
◆ addImage()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addImage |
( |
InputArray | img | ) |
|
|
纯虚函数 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.addImage( | img | ) -> | 无 |
◆ addStrategy()
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.addStrategy( | s | ) -> | 无 |
◆ clearGraphSegmentations()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearGraphSegmentations |
( |
| ) |
|
|
纯虚函数 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.clearGraphSegmentations( | | ) -> | 无 |
◆ clearImages()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearImages |
( |
| ) |
|
|
纯虚函数 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.clearImages( | | ) -> | 无 |
◆ clearStrategies()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearStrategies |
( |
| ) |
|
|
纯虚函数 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.clearStrategies( | | ) -> | 无 |
◆ process()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::process |
( |
std::vector< Rect > & | 矩形 | ) |
|
|
纯虚函数 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.process( | | ) -> | 矩形 |
基于所有图像、图分割和策略,计算所有可能的矩形并返回它们。
- 参数
-
◆ setBaseImage()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::setBaseImage |
( |
InputArray | img | ) |
|
|
纯虚函数 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.setBaseImage( | img | ) -> | 无 |
设置由 switch* 函数使用的图像以初始化该类。
- 参数
-
◆ switchToSelectiveSearchFast()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSelectiveSearchFast |
( |
int | base_k = 150, |
|
|
int | inc_k = 150, |
|
|
float | sigma = 0.8f ) |
|
纯虚函数 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.switchToSelectiveSearchFast( | [, base_k[, inc_k[, sigma]]] | ) -> | 无 |
使用 [280] 中描述的“选择性搜索快速”参数初始化该类。
- 参数
-
| base_k | 第一个图分割的 k 参数 |
| inc_k | 所有图分割的 k 参数的增量 |
| sigma | 图分割的 sigma 参数 |
◆ switchToSelectiveSearchQuality()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSelectiveSearchQuality |
( |
int | base_k = 150, |
|
|
int | inc_k = 150, |
|
|
float | sigma = 0.8f ) |
|
纯虚函数 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.switchToSelectiveSearchQuality( | [, base_k[, inc_k[, sigma]]] | ) -> | 无 |
使用 [280] 中描述的“选择性搜索快速”参数初始化该类。
- 参数
-
| base_k | 第一个图分割的 k 参数 |
| inc_k | 所有图分割的 k 参数的增量 |
| sigma | 图分割的 sigma 参数 |
◆ switchToSingleStrategy()
| virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSingleStrategy |
( |
int | k = 200, |
|
|
float | sigma = 0.8f ) |
|
纯虚函数 |
| Python |
|---|
| cv.ximgproc.segmentation.SelectiveSearchSegmentation.switchToSingleStrategy( | [, k[, sigma]] | ) -> | 无 |
使用 [280] 中描述的“单策略”参数初始化该类。
- 参数
-
| k | 图分割的 k 参数 |
| sigma | 图分割的 sigma 参数 |
此类的文档是从以下文件生成的