🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.ximgproc
Class SelectiveSearchSegmentationStrategy
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.ximgproc.SelectiveSearchSegmentationStrategy
-
- 既知の直接サブクラス:
SelectiveSearchSegmentationStrategyColor,SelectiveSearchSegmentationStrategyFill,SelectiveSearchSegmentationStrategyMultiple,SelectiveSearchSegmentationStrategySize,SelectiveSearchSegmentationStrategyTexture
public class SelectiveSearchSegmentationStrategy extends Algorithm
Strategie for the selective search segmentation algorithm The class implements a generic stragery for the algorithm described in CITE: uijlings2013selective.
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedSelectiveSearchSegmentationStrategy​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static SelectiveSearchSegmentationStrategy__fromPtr__​(long addr)floatget​(int r1, int r2)Return the score between two regions (between 0 and 1)voidmerge​(int r1, int r2)Inform the strategy that two regions will be mergedvoidsetImage​(Mat img, Mat regions, Mat sizes)Set a initial image, with a segmentation.voidsetImage​(Mat img, Mat regions, Mat sizes, int image_id)Set a initial image, with a segmentation.-
クラス org.opencv.core.Algorithm から継承されたメソッド
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
メソッドの詳細
-
__fromPtr__
public static SelectiveSearchSegmentationStrategy __fromPtr__​(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 番目の領域
-
-