🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

クラス BOWImgDescriptorExtractor


  • public class BOWImgDescriptorExtractor extends java.lang.Object
    *bag of visual words* (視覚的単語のバッグ) を用いて画像記述子を計算するクラス。このような計算は次の手順から成る: 1. 与えられた画像とそのキーポイント集合に対して記述子を計算する。2. 各キーポイント記述子について、語彙から最も近い視覚的単語を見つける。3. bag-of-words 画像記述子を、画像中に出現した語彙単語の正規化ヒストグラムとして計算する。ヒストグラムの i 番目のビンは、与えられた画像における語彙の i 番目の単語の頻度である。
    • フィールドの詳細

      • nativeObj

        protected final long nativeObj
    • コンストラクタの詳細

      • BOWImgDescriptorExtractor

        protected BOWImgDescriptorExtractor​(long addr)
      • BOWImgDescriptorExtractor

        public BOWImgDescriptorExtractor​(Feature2D dextractor,
                                         DescriptorMatcher dmatcher)
        The constructor.
        引数:
        dextractor - 入力画像とそのキーポイントに対して記述子を計算するために使用される記述子抽出器。
        dmatcher - 画像の各キーポイント記述子に対して、学習済みボキャブラリの最も近い単語を見つけるために使用される記述子マッチャー。
    • メソッドの詳細

      • getNativeObjAddr

        public long getNativeObjAddr()
      • 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.
        戻り値:
        自動生成