🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.xfeatures2d
クラス BOWImgDescriptorExtractor
- java.lang.Object
-
- org.opencv.xfeatures2d.BOWImgDescriptorExtractor
public class BOWImgDescriptorExtractor extends java.lang.Object*bag of visual words* (視覚的単語のバッグ) を用いて画像記述子を計算するクラス。このような計算は次の手順から成る: 1. 与えられた画像とそのキーポイント集合に対して記述子を計算する。2. 各キーポイント記述子について、語彙から最も近い視覚的単語を見つける。3. bag-of-words 画像記述子を、画像中に出現した語彙単語の正規化ヒストグラムとして計算する。ヒストグラムの i 番目のビンは、与えられた画像における語彙の i 番目の単語の頻度である。
-
-
フィールドの要約
フィールド Modifier and Type Field Description protected longnativeObj
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedBOWImgDescriptorExtractor​(long addr)BOWImgDescriptorExtractor​(Feature2D dextractor, DescriptorMatcher dmatcher)The constructor.
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static BOWImgDescriptorExtractor__fromPtr__​(long addr)voidcompute​(Mat image, MatOfKeyPoint keypoints, Mat imgDescriptor)intdescriptorSize()Returns an image descriptor size if the vocabulary is set.intdescriptorType()Returns an image descriptor type.longgetNativeObjAddr()MatgetVocabulary()Returns the set vocabulary.voidsetVocabulary​(Mat vocabulary)Sets a visual vocabulary.
-
-
-
コンストラクタの詳細
-
BOWImgDescriptorExtractor
protected BOWImgDescriptorExtractor​(long addr)
-
BOWImgDescriptorExtractor
public BOWImgDescriptorExtractor​(Feature2D dextractor, DescriptorMatcher dmatcher)
The constructor.- 引数:
dextractor- 入力画像とそのキーポイントに対して記述子を計算するために使用される記述子抽出器。dmatcher- 画像の各キーポイント記述子に対して、学習済みボキャブラリの最も近い単語を見つけるために使用される記述子マッチャー。
-
-
メソッドの詳細
-
getNativeObjAddr
public long getNativeObjAddr()
-
__fromPtr__
public static BOWImgDescriptorExtractor __fromPtr__​(long addr)
-
setVocabulary
public void setVocabulary​(Mat vocabulary)
Sets a visual vocabulary.- 引数:
vocabulary- ボキャブラリ(BOWTrainer の継承クラスを使って学習できる)。ボキャブラリの各行は1つのビジュアルワード(クラスタ中心)である。
-
getVocabulary
public Mat getVocabulary()
Returns the set vocabulary.- 戻り値:
- 自動生成
-
compute
public void compute​(Mat image, MatOfKeyPoint keypoints, Mat imgDescriptor)
- 引数:
imgDescriptor- 計算された出力画像記述子。pointIdxsOfClusters[i] は、非ゼロの場合に返される、i 番目のクラスタ(ボキャブラリの単語)に属するキーポイントのインデックスである。image- 自動生成keypoints- 自動生成
-
descriptorSize
public int descriptorSize()
Returns an image descriptor size if the vocabulary is set. Otherwise, it returns 0.- 戻り値:
- 自動生成
-
descriptorType
public int descriptorType()
Returns an image descriptor type.- 戻り値:
- 自動生成
-
-