OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::ximgproc::segmentation::SelectiveSearchSegmentation 類參考abstract

選擇性搜尋分割演算法。該類實現了 [280] 中描述的演算法。 更多...

#include <opencv2/ximgproc/segmentation.hpp>

cv::ximgproc::segmentation::SelectiveSearchSegmentation 的協作圖

公共成員函式

virtual void addGraphSegmentation (Ptr< GraphSegmentation > g)=0
 在要處理的圖分割列表中新增新的圖分割。
 
virtual void addImage (InputArray img)=0
 在要處理的影像列表中新增新的影像。
 
virtual void addStrategy (Ptr< SelectiveSearchSegmentationStrategy > s)=0
 在要處理的策略列表中新增新的策略。
 
virtual void clearGraphSegmentations ()=0
 清除要處理的圖分割列表;
 
virtual void clearImages ()=0
 清除要處理的影像列表。
 
virtual void clearStrategies ()=0
 清除要處理的策略列表;
 
virtual void process (std::vector< Rect > &rects)=0
 基於所有影像、圖分割和策略,計算所有可能的矩形並返回它們。
 
virtual void setBaseImage (InputArray img)=0
 設定由 switch* 函式使用的影像以初始化該類。
 
virtual void switchToSelectiveSearchFast (int base_k=150, int inc_k=150, float sigma=0.8f)=0
 使用 [280] 中描述的“選擇性搜尋快速”引數初始化該類。
 
virtual void switchToSelectiveSearchQuality (int base_k=150, int inc_k=150, float sigma=0.8f)=0
 使用 [280] 中描述的“選擇性搜尋快速”引數初始化該類。
 
virtual void switchToSingleStrategy (int k=200, float sigma=0.8f)=0
 使用 [280] 中描述的“單策略”引數初始化該類。
 
- 從 cv::Algorithm 繼承的公共成員函式
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 清除演算法狀態。
 
virtual bool empty () const
 如果 Algorithm 為空(例如,在最開始或在不成功的讀取之後),則返回 true。
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 從檔案儲存中讀取演算法引數。
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 將演算法引數儲存到檔案儲存中。
 
void write (FileStorage &fs, const String &name) const
 

其他繼承的成員

- 從 cv::Algorithm 繼承的靜態公共成員函式
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 從檔案中載入演算法。
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 從字串載入演算法。
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 從檔案節點讀取演算法。
 
- 從 cv::Algorithm 繼承的保護成員函式
void writeFormat (FileStorage &fs) const
 

詳細描述

選擇性搜尋分割演算法。該類實現了 [280] 中描述的演算法。

成員函式文件

◆ addGraphSegmentation()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addGraphSegmentation ( Ptr< GraphSegmentation > g)
純虛擬函式
Python
cv.ximgproc.segmentation.SelectiveSearchSegmentation.addGraphSegmentation(g) ->

在要處理的圖分割列表中新增新的圖分割。

引數
g圖分割

◆ addImage()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addImage ( InputArray img)
純虛擬函式
Python
cv.ximgproc.segmentation.SelectiveSearchSegmentation.addImage(img) ->

在要處理的影像列表中新增新的影像。

引數
img影像

◆ addStrategy()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addStrategy ( Ptr< SelectiveSearchSegmentationStrategy > s)
純虛擬函式
Python
cv.ximgproc.segmentation.SelectiveSearchSegmentation.addStrategy(s) ->

在要處理的策略列表中新增新的策略。

引數
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* 函式使用的影像以初始化該類。

引數
img影像

◆ 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 引數

此類的文件是從以下檔案生成的