OpenCV 4.11.0
开源计算机视觉库
加载中…
搜索中…
无匹配项
图像分割

详细描述

类 cv::ximgproc::segmentation::GraphSegmentation
 基于图的分割算法。此类实现了[86]中描述的算法。更多…
 
类 cv::ximgproc::segmentation::SelectiveSearchSegmentation
 选择性搜索分割算法。此类实现了[277]中描述的算法。更多…
 
类 cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy
 选择性搜索分割算法的策略。此类实现了[277]中描述的算法的通用策略。更多…
 
类 cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyColor
 基于颜色的选择性搜索分割算法策略。此类是根据[277]中描述的算法实现的。更多…
 
类 cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyFill
 基于填充的选择性搜索分割算法策略。此类是根据[277]中描述的算法实现的。更多…
 
类 cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyMultiple
 重新组合选择性搜索分割算法的多个策略。更多…
 
类 cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategySize
 基于大小的选择性搜索分割算法策略。此类是根据[277]中描述的算法实现的。更多…
 
类 cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyTexture
 基于纹理的选择性搜索分割算法策略。此类是根据[277]中描述的算法实现的。更多…
 

函数

Ptr< GraphSegmentationcv::ximgproc::segmentation::createGraphSegmentation (double sigma=0.5, float k=300, int min_size=100)
 创建一个基于图的分割器。
 
Ptr< SelectiveSearchSegmentationcv::ximgproc::segmentation::createSelectiveSearchSegmentation ()
 创建一个新的SelectiveSearchSegmentation 类。
 
Ptr< SelectiveSearchSegmentationStrategyColorcv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyColor ()
 创建一个新的基于颜色的策略。
 
Ptr< SelectiveSearchSegmentationStrategyFillcv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyFill ()
 创建一个新的基于填充的策略。
 
Ptr< SelectiveSearchSegmentationStrategyMultiplecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple ()
 创建一个新的多策略。
 
Ptr< SelectiveSearchSegmentationStrategyMultiplecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple (Ptr< SelectiveSearchSegmentationStrategy > s1)
 创建一个新的多策略并设置一个子策略。
 
Ptr< SelectiveSearchSegmentationStrategyMultiplecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple (Ptr< SelectiveSearchSegmentationStrategy > s1, Ptr< SelectiveSearchSegmentationStrategy > s2)
 创建一个新的多策略并设置两个子策略,权重相等。
 
Ptr< SelectiveSearchSegmentationStrategyMultiplecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple (Ptr< SelectiveSearchSegmentationStrategy > s1, Ptr< SelectiveSearchSegmentationStrategy > s2, Ptr< SelectiveSearchSegmentationStrategy > s3)
 创建一个新的多策略并设置三个子策略,权重相等。
 
Ptr< SelectiveSearchSegmentationStrategyMultiplecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple (Ptr< SelectiveSearchSegmentationStrategy > s1, Ptr< SelectiveSearchSegmentationStrategy > s2, Ptr< SelectiveSearchSegmentationStrategy > s3, Ptr< SelectiveSearchSegmentationStrategy > s4)
 创建一个新的多策略并设置四个子策略,权重相等。
 
Ptr< SelectiveSearchSegmentationStrategySizecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategySize ()
 创建一个新的基于大小的策略。
 
Ptr< SelectiveSearchSegmentationStrategyTexturecv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyTexture ()
 创建一个新的基于大小的策略。
 

函数文档

◆ createGraphSegmentation()

Ptr< GraphSegmentation > cv::ximgproc::segmentation::createGraphSegmentation ( double sigma = 0.5,
float k = 300,
int min_size = 100 )
Python
cv.ximgproc.segmentation.createGraphSegmentation([, sigma[, k[, min_size]]]) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

创建一个基于图的分割器。

参数
sigma用于平滑图像的sigma参数
k算法的k参数
min_size最小分割大小

◆ createSelectiveSearchSegmentation()

cv::ximgproc::segmentation::createSelectiveSearchSegmentation 返回 Ptr< SelectiveSearchSegmentation > ( )
Python
cv.ximgproc.segmentation.createSelectiveSearchSegmentation() -> retval

◆ createSelectiveSearchSegmentationStrategyColor()

cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyColor 返回 Ptr< SelectiveSearchSegmentationStrategyColor > ( )
Python
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyColor() -> retval

#include <opencv2/ximgproc/segmentation.hpp>

创建一个新的基于颜色的策略。

◆ createSelectiveSearchSegmentationStrategyFill()

cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyFill 返回 Ptr< SelectiveSearchSegmentationStrategyFill > ( )
Python
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyFill() -> retval

#include <opencv2/ximgproc/segmentation.hpp>

创建一个新的基于填充的策略。

◆ createSelectiveSearchSegmentationStrategyMultiple() [1/5]

cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple 返回 Ptr< SelectiveSearchSegmentationStrategyMultiple > ( )
Python
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple() -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

创建一个新的多策略。

◆ createSelectiveSearchSegmentationStrategyMultiple() [2/5]

cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple 返回 Ptr< SelectiveSearchSegmentationStrategyMultiple > ( 返回 Ptr< SelectiveSearchSegmentationStrategy > s1)
Python
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple() -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

创建一个新的多策略并设置一个子策略。

参数
s1第一个策略

◆ createSelectiveSearchSegmentationStrategyMultiple() [3/5]

cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple 返回 Ptr< SelectiveSearchSegmentationStrategyMultiple > ( 返回 Ptr< SelectiveSearchSegmentationStrategy > s1,
返回 Ptr< SelectiveSearchSegmentationStrategy > s2 )
Python
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple() -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

创建一个新的多策略并设置两个子策略,权重相等。

参数
s1第一个策略
s2第二个策略

◆ createSelectiveSearchSegmentationStrategyMultiple() [4/5]

cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple 返回 Ptr< SelectiveSearchSegmentationStrategyMultiple > ( 返回 Ptr< SelectiveSearchSegmentationStrategy > s1,
返回 Ptr< SelectiveSearchSegmentationStrategy > s2,
返回 Ptr< SelectiveSearchSegmentationStrategy > s3 )
Python
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple() -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

创建一个新的多策略并设置三个子策略,权重相等。

参数
s1第一个策略
s2第二个策略
s3第三个策略

◆ createSelectiveSearchSegmentationStrategyMultiple() [5/5]

cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple 返回 Ptr< SelectiveSearchSegmentationStrategyMultiple > ( 返回 Ptr< SelectiveSearchSegmentationStrategy > s1,
返回 Ptr< SelectiveSearchSegmentationStrategy > s2,
返回 Ptr< SelectiveSearchSegmentationStrategy > s3,
返回 Ptr< SelectiveSearchSegmentationStrategy > s4 )
Python
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple() -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3) -> retval
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4) -> retval

#include <opencv2/ximgproc/segmentation.hpp>

创建一个新的多策略并设置四个子策略,权重相等。

参数
s1第一个策略
s2第二个策略
s3第三个策略
s4第四个策略

◆ createSelectiveSearchSegmentationStrategySize()

cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategySize 返回 Ptr< SelectiveSearchSegmentationStrategySize > ( )
Python
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategySize() -> retval

#include <opencv2/ximgproc/segmentation.hpp>

创建一个新的基于大小的策略。

◆ createSelectiveSearchSegmentationStrategyTexture()

cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyTexture 返回 Ptr< SelectiveSearchSegmentationStrategyTexture > ( )
Python
cv.ximgproc.segmentation.createSelectiveSearchSegmentationStrategyTexture() -> retval

#include <opencv2/ximgproc/segmentation.hpp>

创建一个新的基于大小的策略。