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

ステレオ対応アルゴリズムのための基底クラス。続き...

#include <opencv2/calib3d.hpp>

Collaboration diagram for cv::StereoMatcher:

公開型

enum  {
  DISP_SHIFT = 4 ,
  DISP_SCALE = (1 << DISP_SHIFT)
}
 

公開メンバ関数

virtual void compute (InputArray left, InputArray right, OutputArray disparity)=0
 指定したステレオペアの視差マップを計算する。
 
virtual int getBlockSize () const =0
 
virtual int getDisp12MaxDiff () const =0
 
virtual int getMinDisparity () const =0
 
virtual int getNumDisparities () const =0
 
virtual int getSpeckleRange () const =0
 
virtual int getSpeckleWindowSize () const =0
 
virtual void setBlockSize (int blockSize)=0
 
virtual void setDisp12MaxDiff (int disp12MaxDiff)=0
 
virtual void setMinDisparity (int minDisparity)=0
 
virtual void setNumDisparities (int numDisparities)=0
 
virtual void setSpeckleRange (int speckleRange)=0
 
virtual void setSpeckleWindowSize (int speckleWindowSize)=0
 
- 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
 

詳細説明

ステレオ対応アルゴリズムのための基底クラス。

列挙型メンバ詳解

◆ anonymous enum

anonymous enum
列挙値
DISP_SHIFT 
DISP_SCALE 

メンバ関数詳解

◆ compute()

virtual void cv::StereoMatcher::compute ( InputArray left,
InputArray right,
OutputArray disparity )
pure virtual
Python:
cv.StereoMatcher.compute(left, right[, disparity]) -> disparity

指定されたステレオペアに対して視差マップを計算する。

引数
left左側の 8 ビットシングルチャンネル画像。
right左画像と同じサイズかつ同じ型の右画像。
disparity出力される視差マップ。入力画像と同じサイズを持つ。StereoBMStereoSGBM といった一部のアルゴリズムは 16 ビット固定小数点の視差マップ(各視差値は 4 ビットの小数部を持つ)を計算するのに対し、他のアルゴリズムは 32 ビット浮動小数点の視差マップを出力する。

cv::cuda::StereoSGM で実装されている。

◆ getBlockSize()

virtual int cv::StereoMatcher::getBlockSize ( ) const
pure virtual
Python:
cv.StereoMatcher.getBlockSize() -> retval

◆ getDisp12MaxDiff()

virtual int cv::StereoMatcher::getDisp12MaxDiff ( ) const
pure virtual
Python:
cv.StereoMatcher.getDisp12MaxDiff() -> retval

◆ getMinDisparity()

virtual int cv::StereoMatcher::getMinDisparity ( ) const
pure virtual
Python:
cv.StereoMatcher.getMinDisparity() -> retval

◆ getNumDisparities()

virtual int cv::StereoMatcher::getNumDisparities ( ) const
pure virtual
Python:
cv.StereoMatcher.getNumDisparities() -> retval

◆ getSpeckleRange()

virtual int cv::StereoMatcher::getSpeckleRange ( ) const
pure virtual
Python:
cv.StereoMatcher.getSpeckleRange() -> retval

◆ getSpeckleWindowSize()

virtual int cv::StereoMatcher::getSpeckleWindowSize ( ) const
pure virtual
Python:
cv.StereoMatcher.getSpeckleWindowSize() -> retval

◆ setBlockSize()

virtual void cv::StereoMatcher::setBlockSize ( int blockSize)
pure virtual
Python:
cv.StereoMatcher.setBlockSize(blockSize) -> None

◆ setDisp12MaxDiff()

virtual void cv::StereoMatcher::setDisp12MaxDiff ( int disp12MaxDiff)
pure virtual
Python:
cv.StereoMatcher.setDisp12MaxDiff(disp12MaxDiff) -> None

◆ setMinDisparity()

virtual void cv::StereoMatcher::setMinDisparity ( int minDisparity)
pure virtual
Python:
cv.StereoMatcher.setMinDisparity(minDisparity) -> None

◆ setNumDisparities()

virtual void cv::StereoMatcher::setNumDisparities ( int numDisparities)
pure virtual
Python:
cv.StereoMatcher.setNumDisparities(numDisparities) -> None

◆ setSpeckleRange()

virtual void cv::StereoMatcher::setSpeckleRange ( int speckleRange)
pure virtual
Python:
cv.StereoMatcher.setSpeckleRange(speckleRange) -> None

◆ setSpeckleWindowSize()

virtual void cv::StereoMatcher::setSpeckleWindowSize ( int speckleWindowSize)
pure virtual
Python:
cv.StereoMatcher.setSpeckleWindowSize(speckleWindowSize) -> None

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