OpenCV 4.13.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
cv::ximgproc::segmentation::SelectiveSearchSegmentation クラスabstract

選択的探索(Selective search)によるセグメンテーションアルゴリズム。このクラスは [283] で説明されているアルゴリズムを実装する。 続き...

#include <opencv2/ximgproc/segmentation.hpp>

Collaboration diagram for 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
 [283] で説明されている 'Selective search fast' のパラメータでクラスを初期化する。
 
virtual void switchToSelectiveSearchQuality (int base_k=150, int inc_k=150, float sigma=0.8f)=0
 [283] で説明されている 'Selective search fast' のパラメータでクラスを初期化する。
 
virtual void switchToSingleStrategy (int k=200, float sigma=0.8f)=0
 [283] で説明されている 'Single stragegy' のパラメータでクラスを初期化する。
 
- Public Member Functions inherited from 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
 

Additional Inherited Members

- Static Public Member Functions inherited from 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)
 ファイルノードからアルゴリズムを読み込む。
 
- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

詳細説明

選択的探索(Selective search)によるセグメンテーションアルゴリズム。このクラスは [283] で説明されているアルゴリズムを実装する。

メンバ関数詳解

◆ addGraphSegmentation()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addGraphSegmentation ( Ptr< GraphSegmentation > g)
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.addGraphSegmentation(g) -> None

処理対象のグラフセグメンテーションのリストに新しいグラフセグメンテーションを追加する。

引数
gグラフセグメンテーション

◆ addImage()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addImage ( InputArray img)
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.addImage(img) -> None

処理対象の画像のリストに新しい画像を追加する。

引数
img画像

◆ addStrategy()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addStrategy ( Ptr< SelectiveSearchSegmentationStrategy > s)
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.addStrategy(s) -> None

処理対象の戦略のリストに新しい戦略を追加する。

引数
sストラテジー

◆ clearGraphSegmentations()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearGraphSegmentations ( )
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.clearGraphSegmentations() -> None

処理対象のグラフセグメンテーションのリストをクリアする。

◆ clearImages()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearImages ( )
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.clearImages() -> None

処理対象の画像のリストをクリアする。

◆ clearStrategies()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearStrategies ( )
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.clearStrategies() -> None

処理対象の戦略のリストをクリアする。

◆ process()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::process ( std::vector< Rect > & rects)
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.process() -> rects

すべての画像、グラフセグメンテーション、戦略に基づき、可能なすべての矩形を計算して返す。

引数
rects矩形のリスト。先頭のものほど後ろのものより関連性が高い。

◆ setBaseImage()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::setBaseImage ( InputArray img)
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.setBaseImage(img) -> None

クラスを初期化するために switch* 関数で使用される画像を設定する。

引数
img画像

◆ switchToSelectiveSearchFast()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSelectiveSearchFast ( int base_k = 150,
int inc_k = 150,
float sigma = 0.8f )
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.switchToSelectiveSearchFast([, base_k[, inc_k[, sigma]]]) -> None

[283] で説明されている 'Selective search fast' のパラメータでクラスを初期化する。

引数
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 )
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.switchToSelectiveSearchQuality([, base_k[, inc_k[, sigma]]]) -> None

[283] で説明されている 'Selective search fast' のパラメータでクラスを初期化する。

引数
base_k最初のグラフセグメンテーションに対する k 引数。
inc_kすべてのグラフセグメンテーションに対する k 引数の増分。
sigmaグラフセグメンテーションに対する sigma 引数。

◆ switchToSingleStrategy()

virtual void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSingleStrategy ( int k = 200,
float sigma = 0.8f )
pure virtual
Python:
cv.ximgproc.segmentation.SelectiveSearchSegmentation.switchToSingleStrategy([, k[, sigma]]) -> None

[283] で説明されている 'Single stragegy' のパラメータでクラスを初期化する。

引数
kグラフセグメンテーションに対する k 引数。
sigmaグラフセグメンテーションに対する sigma 引数。

このクラス詳解は次のファイルから抽出されました: