BoostDesc(ブースティングによる画像記述子の学習)を実装するクラス。[267] および [268] で説明されている。さらに詳しく...
#include <opencv2/xfeatures2d.hpp>
|
| String | getDefaultName () const CV_OVERRIDE |
| |
| virtual float | getScaleFactor () const =0 |
| |
| virtual bool | getUseScaleOrientation () const =0 |
| |
| virtual void | setScaleFactor (const float scale_factor)=0 |
| |
| virtual void | setUseScaleOrientation (const bool use_scale_orientation)=0 |
| |
| virtual | ~Feature2D () |
| |
| virtual void | compute (InputArray image, std::vector< KeyPoint > &keypoints, OutputArray descriptors) |
| | 画像(1番目のバリアント)または画像集合(2番目のバリアント)で検出されたキーポイントの集合について記述子を計算する。
|
| |
| virtual void | compute (InputArrayOfArrays images, std::vector< std::vector< KeyPoint > > &keypoints, OutputArrayOfArrays descriptors) |
| |
| virtual int | defaultNorm () const |
| |
| virtual int | descriptorSize () const |
| |
| virtual int | descriptorType () const |
| |
| virtual void | detect (InputArray image, std::vector< KeyPoint > &keypoints, InputArray mask=noArray()) |
| | 画像(1番目のバリアント)または画像集合(2番目のバリアント)からキーポイントを検出する。
|
| |
| virtual void | detect (InputArrayOfArrays images, std::vector< std::vector< KeyPoint > > &keypoints, InputArrayOfArrays masks=noArray()) |
| |
| virtual void | detectAndCompute (InputArray image, InputArray mask, std::vector< KeyPoint > &keypoints, OutputArray descriptors, bool useProvidedKeypoints=false) |
| |
| virtual bool | empty () const CV_OVERRIDE |
| | 検出器オブジェクトが空の場合に true を返す。
|
| |
| virtual void | read (const FileNode &) CV_OVERRIDE |
| | ファイルストレージからアルゴリズムの引数を読み込む。
|
| |
| void | read (const String &fileName) |
| |
| void | write (const Ptr< FileStorage > &fs, const String &name) const |
| |
| void | write (const String &fileName) const |
| |
| virtual void | write (FileStorage &) const CV_OVERRIDE |
| | アルゴリズムの引数をファイルストレージに保存する。
|
| |
| void | write (FileStorage &fs, const String &name) const |
| |
| | Algorithm () |
| |
| virtual | ~Algorithm () |
| |
| virtual void | clear () |
| | アルゴリズムの状態をクリアする。
|
| |
| virtual void | save (const String &filename) const |
| |
| void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
| |
| void | write (FileStorage &fs, const String &name) const |
| |
BoostDesc(ブースティングによる画像記述子の学習)を実装するクラス。[267] および [268] で説明されている。
- 引数
-
- 覚え書き
- BGMは基本となる記述子であり、各バイナリ次元は単一の弱学習器の出力として計算される。BGM_HARDとBGM_BILINEARはBGMと同じものを指すが、勾配ビニングの種類が異なる。ASSIGN_HARDビニング方式を用いるBGM_HARDでは、勾配は最も近い向きのビンに割り当てられる。ASSIGN_BILINEARビニング方式を用いるBGM_BILINEARでは、勾配は隣接する2つのビンに割り当てられる。BGMおよびASSIGN_SOFTビニング方式を用いるその他すべてのモードでは、勾配は勾配角度とビン中心とのコサイン値に応じて最も近い8つのビンに割り当てられる。LBGM(別名FP-Boost)は浮動小数点拡張であり、各次元は弱学習器の応答の線形結合として計算される。BINBOOSTおよびそのサブバリアントはLBGMのバイナリ拡張であり、各ビットは弱学習器集合の線形結合をしきい値処理して計算される。BoostDescのヘッダファイル(boostdesc_*.i)は、samplesサブフォルダ内のexport-boostdesc.pyスクリプトによって元のバイナリからエクスポートされた。
◆ anonymous enum
| 列挙値 |
|---|
| BGM | |
| BGM_HARD | |
| BGM_BILINEAR | |
| LBGM | |
| BINBOOST_64 | |
| BINBOOST_128 | |
| BINBOOST_256 | |
◆ create()
| Python: |
|---|
| cv.xfeatures2d.BoostDesc.create( | [, desc[, use_scale_orientation[, scale_factor]]] | ) -> | retval |
| cv.xfeatures2d.BoostDesc_create( | [, desc[, use_scale_orientation[, scale_factor]]] | ) -> | retval |
◆ getDefaultName()
| String cv::xfeatures2d::BoostDesc::getDefaultName |
( |
| ) |
const |
|
virtual |
| Python: |
|---|
| cv.xfeatures2d.BoostDesc.getDefaultName( | | ) -> | retval |
アルゴリズムの文字列識別子を返す。この文字列は、オブジェクトをファイルまたは文字列に保存する際に、最上位の xml/yml ノードタグとして使用される。
cv::Feature2D から再実装されている。
◆ getScaleFactor()
| virtual float cv::xfeatures2d::BoostDesc::getScaleFactor |
( |
| ) |
const |
|
pure virtual |
| Python: |
|---|
| cv.xfeatures2d.BoostDesc.getScaleFactor( | | ) -> | retval |
◆ getUseScaleOrientation()
| virtual bool cv::xfeatures2d::BoostDesc::getUseScaleOrientation |
( |
| ) |
const |
|
pure virtual |
| Python: |
|---|
| cv.xfeatures2d.BoostDesc.getUseScaleOrientation( | | ) -> | retval |
◆ setScaleFactor()
| virtual void cv::xfeatures2d::BoostDesc::setScaleFactor |
( |
const float | scale_factor | ) |
|
|
pure virtual |
| Python: |
|---|
| cv.xfeatures2d.BoostDesc.setScaleFactor( | scale_factor | ) -> | None |
◆ setUseScaleOrientation()
| virtual void cv::xfeatures2d::BoostDesc::setUseScaleOrientation |
( |
const bool | use_scale_orientation | ) |
|
|
pure virtual |
| Python: |
|---|
| cv.xfeatures2d.BoostDesc.setUseScaleOrientation( | use_scale_orientation | ) -> | None |
このクラス詳解は次のファイルから抽出されました: