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

Class SelectiveSearchSegmentationStrategy

    • コンストラクタの詳細

      • SelectiveSearchSegmentationStrategy

        protected SelectiveSearchSegmentationStrategy​(long addr)
    • メソッドの詳細

      • setImage

        public void setImage​(Mat img,
                             Mat regions,
                             Mat sizes,
                             int image_id)
        Set a initial image, with a segmentation.
        引数:
        img - 入力画像。任意のチャンネル数を指定できる。
        regions - 画像のセグメンテーション。このパラメータは img と同じサイズでなければならない。
        sizes - 異なる領域のサイズ
        image_id - -1 以外に設定した場合、事前計算をキャッシュしようとする。同じ (img, regions, size) の組を使う場合、image_id は同じである必要がある。
      • setImage

        public void setImage​(Mat img,
                             Mat regions,
                             Mat sizes)
        Set a initial image, with a segmentation.
        引数:
        img - 入力画像。任意のチャンネル数を指定できる。
        regions - 画像のセグメンテーション。このパラメータは img と同じサイズでなければならない。
        sizes - 異なる領域のサイズ
      • get

        public float get​(int r1,
                         int r2)
        Return the score between two regions (between 0 and 1)
        引数:
        r1 - 1 番目の領域
        r2 - 2 番目の領域
        戻り値:
        自動生成
      • merge

        public void merge​(int r1,
                          int r2)
        Inform the strategy that two regions will be merged
        引数:
        r1 - 1 番目の領域
        r2 - 2 番目の領域