線分の検出とそのバイナリ記述子の計算という両方の機能を実装するクラス。 続きを読む...
#include <opencv2/line_descriptor/descriptor.hpp>
|
| | BinaryDescriptor (const BinaryDescriptor::Params ¶meters=BinaryDescriptor::Params()) |
| | コンストラクタ。
|
| |
| | ~BinaryDescriptor () |
| |
| void | compute (const Mat &image, std::vector< KeyLine > &keylines, Mat &descriptors, bool returnFloatDescr=false) const |
| | 記述子の計算を必要とする。
|
| |
| void | compute (const std::vector< Mat > &images, std::vector< std::vector< KeyLine > > &keylines, std::vector< Mat > &descriptors, bool returnFloatDescr=false) const |
| |
| int | defaultNorm () const |
| |
| int | descriptorSize () const |
| | 記述子のサイズを返す。
|
| |
| int | descriptorType () const |
| | データ型を返す。
|
| |
| void | detect (const Mat &image, std::vector< KeyLine > &keypoints, const Mat &mask=Mat()) |
| | 線分検出を必要とする。
|
| |
| void | detect (const std::vector< Mat > &images, std::vector< std::vector< KeyLine > > &keylines, const std::vector< Mat > &masks=std::vector< Mat >()) const |
| |
| int | getNumOfOctaves () |
| | 現在のオクターブ数を取得する。
|
| |
| int | getReductionRatio () |
| | 現在の縮小率(ガウシアンピラミッドで使用)を取得する。
|
| |
| int | getWidthOfBand () |
| | 現在のバンド幅を取得する。
|
| |
| virtual void | operator() (InputArray image, InputArray mask, std::vector< KeyLine > &keylines, OutputArray descriptors, bool useProvidedKeyLines=false, bool returnFloatDescr=false) const |
| | 演算子 '()' を定義し、KeyLine の検出と記述子の計算を一度に実行する。
|
| |
| virtual void | read (const cv::FileNode &fn) CV_OVERRIDE |
| | FileNode オブジェクトから引数を読み込んで格納する。
|
| |
| void | setNumOfOctaves (int octaves) |
| | オクターブ数を設定する。
|
| |
| void | setReductionRatio (int rRatio) |
| | 縮小率(ガウシアンピラミッドで使用)を設定する。
|
| |
| void | setWidthOfBand (int width) |
| | バンド幅を設定する。
|
| |
| virtual void | write (cv::FileStorage &fs) const CV_OVERRIDE |
| | 引数を FileStorage オブジェクトに格納する。
|
| |
| | Algorithm () |
| |
| virtual | ~Algorithm () |
| |
| virtual void | clear () |
| | アルゴリズムの状態をクリアする。
|
| |
| virtual bool | empty () const |
| | Algorithm が空の場合(たとえば開始直後や読み込みに失敗した後)に true を返す。
|
| |
| virtual String | getDefaultName () const |
| |
| 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 |
| |
線分の検出とそのバイナリ記述子の計算という両方の機能を実装するクラス。
このクラスのインタフェースは、主に Feature2d の 特徴検出と記述 や 記述子マッチャー といった古典的な検出器・抽出器のものに基づいている。取得された線分に関する情報は line_descriptor::KeyLine オブジェクトに格納される。
◆ BinaryDescriptor()
コンストラクタ。
- 引数
-
引数が指定されない場合、コンストラクタはデフォルト値を設定する(前節のコードスニペット内のコメントを参照)。デフォルト値の使用を強く推奨する。
◆ ~BinaryDescriptor()
| cv::line_descriptor::BinaryDescriptor::~BinaryDescriptor |
( |
| ) |
|
◆ compute() [1/2]
| void cv::line_descriptor::BinaryDescriptor::compute |
( |
const Mat & | image, |
|
|
std::vector< KeyLine > & | keylines, |
|
|
Mat & | descriptors, |
|
|
bool | returnFloatDescr = false ) const |
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.compute( | image, keylines[, descriptors[, returnFloatDescr]] | ) -> | keylines, descriptors |
記述子の計算を必要とする。
- 引数
-
| image | 入力画像 |
| keylines | 記述子を計算する対象の線を格納したベクトル |
| descriptors | |
| returnFloatDescr | フラグ(true に設定すると、元の非バイナリ記述子が返される) |
◆ compute() [2/2]
| void cv::line_descriptor::BinaryDescriptor::compute |
( |
const std::vector< Mat > & | images, |
|
|
std::vector< std::vector< KeyLine > > & | keylines, |
|
|
std::vector< Mat > & | descriptors, |
|
|
bool | returnFloatDescr = false ) const |
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.compute( | image, keylines[, descriptors[, returnFloatDescr]] | ) -> | keylines, descriptors |
これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。
- 引数
-
| images | 入力画像 |
| keylines | 記述子を計算する対象の線を格納したベクトルの集合 |
| descriptors | |
| returnFloatDescr | フラグ(true に設定すると、元の非バイナリ記述子が返される) |
◆ computeImpl()
| virtual void cv::line_descriptor::BinaryDescriptor::computeImpl |
( |
const Mat & | imageSrc, |
|
|
std::vector< KeyLine > & | keylines, |
|
|
Mat & | descriptors, |
|
|
bool | returnFloatDescr, |
|
|
bool | useDetectionData ) const |
|
protectedvirtual |
◆ createBinaryDescriptor() [1/2]
| static Ptr< BinaryDescriptor > cv::line_descriptor::BinaryDescriptor::createBinaryDescriptor |
( |
| ) |
|
|
static |
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.createBinaryDescriptor( | | ) -> | retval |
| cv.line_descriptor.BinaryDescriptor_createBinaryDescriptor( | | ) -> | retval |
◆ createBinaryDescriptor() [2/2]
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.createBinaryDescriptor( | | ) -> | retval |
| cv.line_descriptor.BinaryDescriptor_createBinaryDescriptor( | | ) -> | retval |
◆ defaultNorm()
| int cv::line_descriptor::BinaryDescriptor::defaultNorm |
( |
| ) |
const |
◆ descriptorSize()
| int cv::line_descriptor::BinaryDescriptor::descriptorSize |
( |
| ) |
const |
◆ descriptorType()
| int cv::line_descriptor::BinaryDescriptor::descriptorType |
( |
| ) |
const |
◆ detect() [1/2]
| void cv::line_descriptor::BinaryDescriptor::detect |
( |
const Mat & | image, |
|
|
std::vector< KeyLine > & | keypoints, |
|
|
const Mat & | mask = Mat() ) |
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.detect( | image[, mask] | ) -> | keypoints |
線分検出を必要とする。
- 引数
-
| image | 入力画像 |
| keypoints | 1枚以上の画像から抽出された線分を格納するベクトル |
| mask | 対象とするKeyLineのみを検出するためのマスク行列 |
◆ detect() [2/2]
| void cv::line_descriptor::BinaryDescriptor::detect |
( |
const std::vector< Mat > & | images, |
|
|
std::vector< std::vector< KeyLine > > & | keylines, |
|
|
const std::vector< Mat > & | masks = std::vector< Mat >() ) const |
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.detect( | image[, mask] | ) -> | keypoints |
これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。
- 引数
-
| images | 入力画像 |
| keylines | 1枚以上の画像から抽出された線分を格納するベクトルの集合 |
| masks | 各入力画像から対象とするKeyLineのみを検出するためのマスク行列のベクトル |
◆ detectImpl()
| virtual void cv::line_descriptor::BinaryDescriptor::detectImpl |
( |
const Mat & | imageSrc, |
|
|
std::vector< KeyLine > & | keylines, |
|
|
const Mat & | mask = Mat() ) const |
|
protectedvirtual |
◆ getNumOfOctaves()
| int cv::line_descriptor::BinaryDescriptor::getNumOfOctaves |
( |
| ) |
|
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.getNumOfOctaves( | | ) -> | retval |
◆ getReductionRatio()
| int cv::line_descriptor::BinaryDescriptor::getReductionRatio |
( |
| ) |
|
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.getReductionRatio( | | ) -> | retval |
現在の縮小率(ガウシアンピラミッドで使用)を取得する
◆ getWidthOfBand()
| int cv::line_descriptor::BinaryDescriptor::getWidthOfBand |
( |
| ) |
|
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.getWidthOfBand( | | ) -> | retval |
◆ operator()()
| virtual void cv::line_descriptor::BinaryDescriptor::operator() |
( |
InputArray | image, |
|
|
InputArray | mask, |
|
|
std::vector< KeyLine > & | keylines, |
|
|
OutputArray | descriptors, |
|
|
bool | useProvidedKeyLines = false, |
|
|
bool | returnFloatDescr = false ) const |
|
virtual |
演算子 '()' を定義し、KeyLine の検出と記述子の計算を一度に実行する。
- 引数
-
| image | 入力画像 |
| mask | 抽出された KeyLines のうち、どの線を受け入れるかを選択するためのマスク行列(keylines が空でない場合に使用される) |
| keylines | 入力する線を格納したベクトル(指定された場合、検出処理はスキップされ、入力された線が記述子を計算するアルゴリズムへの入力として渡される) |
| descriptors | 最終的な記述子を格納する行列 |
| useProvidedKeyLines | フラグ(true に設定すると、検出フェーズはスキップされ、keylines で指定された線を使用して記述子の計算のみが実行される) |
| returnFloatDescr | フラグ(true に設定すると、元の非バイナリ記述子が返される) |
◆ read()
| virtual void cv::line_descriptor::BinaryDescriptor::read |
( |
const cv::FileNode & | fn | ) |
|
|
virtual |
◆ setNumOfOctaves()
| void cv::line_descriptor::BinaryDescriptor::setNumOfOctaves |
( |
int | octaves | ) |
|
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.setNumOfOctaves( | octaves | ) -> | None |
◆ setReductionRatio()
| void cv::line_descriptor::BinaryDescriptor::setReductionRatio |
( |
int | rRatio | ) |
|
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.setReductionRatio( | rRatio | ) -> | None |
縮小率(ガウシアンピラミッドで使用)を設定する
- 引数
-
◆ setWidthOfBand()
| void cv::line_descriptor::BinaryDescriptor::setWidthOfBand |
( |
int | width | ) |
|
| Python: |
|---|
| cv.line_descriptor.BinaryDescriptor.setWidthOfBand( | width | ) -> | None |
◆ write()
| virtual void cv::line_descriptor::BinaryDescriptor::write |
( |
cv::FileStorage & | fs | ) |
const |
|
virtual |
このクラス詳解は次のファイルから抽出されました: