🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.features
クラス Feature2D
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.features.Feature2D
-
- 既知の直接サブクラス:
AffineFeature,AffineFeature2D,AgastFeatureDetector,AKAZE,ALIKED,BEBLID,BoostDesc,BriefDescriptorExtractor,BRISK,DAISY,DISK,FastFeatureDetector,FREAK,GFTTDetector,HarrisLaplaceFeatureDetector,KAZE,LATCH,LUCID,MSDDetector,MSER,ORB,SIFT,SimpleBlobDetector,StarDetector,SURF,TEBLID,VGG
public class Feature2D extends Algorithm
Abstract base class for 2D image feature detectors and descriptor extractors
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedFeature2D​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static Feature2D__fromPtr__​(long addr)voidcompute​(java.util.List<Mat> images, java.util.List<MatOfKeyPoint> keypoints, java.util.List<Mat> descriptors)voidcompute​(Mat image, MatOfKeyPoint keypoints, Mat descriptors)Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant).intdefaultNorm()intdescriptorSize()intdescriptorType()voiddetect​(java.util.List<Mat> images, java.util.List<MatOfKeyPoint> keypoints)voiddetect​(java.util.List<Mat> images, java.util.List<MatOfKeyPoint> keypoints, java.util.List<Mat> masks)voiddetect​(Mat image, MatOfKeyPoint keypoints)Detects keypoints in an image (first variant) or image set (second variant).voiddetect​(Mat image, MatOfKeyPoint keypoints, Mat mask)Detects keypoints in an image (first variant) or image set (second variant).voiddetectAndCompute​(Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors)Detects keypoints and computes the descriptorsvoiddetectAndCompute​(Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors, boolean useProvidedKeypoints)Detects keypoints and computes the descriptorsbooleanempty()Returns true if the Algorithm is empty (e.g.java.lang.StringgetDefaultName()Returns the algorithm string identifier.voidread​(java.lang.String fileName)voidwrite​(java.lang.String fileName)-
クラス org.opencv.core.Algorithm から継承されたメソッド
clear, getNativeObjAddr, save
-
-
-
-
メソッドの詳細
-
__fromPtr__
public static Feature2D __fromPtr__​(long addr)
-
detect
public void detect​(Mat image, MatOfKeyPoint keypoints, Mat mask)
Detects keypoints in an image (first variant) or image set (second variant).- 引数:
image- 画像。keypoints- 検出されたキーポイント。本メソッドの2番目のバリアントでは、keypoints[i] は images[i] で検出されたキーポイントの集合である。mask- キーポイントを探す範囲を指定するマスク(省略可能)。関心領域内で非ゼロ値を持つ8ビット整数行列でなければならない。
-
detect
public void detect​(Mat image, MatOfKeyPoint keypoints)
Detects keypoints in an image (first variant) or image set (second variant).- 引数:
image- 画像。keypoints- 検出されたキーポイント。本メソッドの2番目のバリアントでは、keypoints[i] は images[i] で検出されたキーポイントの集合である。関心領域内で非ゼロ値を持つ行列。
-
detect
public void detect​(java.util.List<Mat> images, java.util.List<MatOfKeyPoint> keypoints, java.util.List<Mat> masks)
- 引数:
images- 画像の集合。keypoints- 検出されたキーポイント。本メソッドの2番目のバリアントでは、keypoints[i] は images[i] で検出されたキーポイントの集合である。masks- 各入力画像についてキーポイントを探す範囲を指定するマスク(省略可能)。masks[i] は images[i] に対するマスクである。
-
detect
public void detect​(java.util.List<Mat> images, java.util.List<MatOfKeyPoint> keypoints)
- 引数:
images- 画像の集合。keypoints- 検出されたキーポイント。本メソッドの2番目のバリアントでは、keypoints[i] は images[i] で検出されたキーポイントの集合である。masks[i] は images[i] に対するマスクである。
-
compute
public void compute​(Mat image, MatOfKeyPoint keypoints, Mat descriptors)
Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant).- 引数:
image- 画像。keypoints- 入力されるキーポイントの集合。記述子を計算できないキーポイントは除去される。場合によっては新たなキーポイントが追加されることもある。例: SIFT は複数の主要な方向を持つキーポイントを(各方向ごとに)複製する。descriptors- 計算された記述子。本メソッドの2番目のバリアントでは、descriptors[i] は keypoints[i] に対して計算された記述子である。行 j(keypoints または keypoints[i] の)は j 番目のキーポイントに対する記述子である。
-
compute
public void compute​(java.util.List<Mat> images, java.util.List<MatOfKeyPoint> keypoints, java.util.List<Mat> descriptors)
- 引数:
images- 画像の集合。keypoints- 入力されるキーポイントの集合。記述子を計算できないキーポイントは除去される。場合によっては新たなキーポイントが追加されることもある。例: SIFT は複数の主要な方向を持つキーポイントを(各方向ごとに)複製する。descriptors- 計算された記述子。本メソッドの2番目のバリアントでは、descriptors[i] は keypoints[i] に対して計算された記述子である。行 j(keypoints または keypoints[i] の)は j 番目のキーポイントに対する記述子である。
-
detectAndCompute
public void detectAndCompute​(Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors, boolean useProvidedKeypoints)
Detects keypoints and computes the descriptors- 引数:
image- 自動生成mask- 自動生成keypoints- 自動生成descriptors- 自動生成useProvidedKeypoints- 自動生成
-
detectAndCompute
public void detectAndCompute​(Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors)
Detects keypoints and computes the descriptors- 引数:
image- 自動生成mask- 自動生成keypoints- 自動生成descriptors- 自動生成
-
descriptorSize
public int descriptorSize()
-
descriptorType
public int descriptorType()
-
defaultNorm
public int defaultNorm()
-
write
public void write​(java.lang.String fileName)
-
read
public void read​(java.lang.String fileName)
-
empty
public boolean empty()
Description copied from class:AlgorithmReturns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
-
getDefaultName
public java.lang.String getDefaultName()
Description copied from class:AlgorithmReturns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.- オーバーライド:
- クラス
AlgorithmのgetDefaultName - 戻り値:
- 自動生成
-
-