public class Feature2D extends Algorithm
Modifier and Type | Method and Description |
---|---|
static Feature2D |
__fromPtr__(long addr) |
void |
compute(java.util.List<Mat> images,
java.util.List<MatOfKeyPoint> keypoints,
java.util.List<Mat> descriptors) |
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).
|
int |
defaultNorm() |
int |
descriptorSize() |
int |
descriptorType() |
void |
detect(java.util.List<Mat> images,
java.util.List<MatOfKeyPoint> keypoints) |
void |
detect(java.util.List<Mat> images,
java.util.List<MatOfKeyPoint> keypoints,
java.util.List<Mat> masks) |
void |
detect(Mat image,
MatOfKeyPoint keypoints)
Detects keypoints in an image (first variant) or image set (second variant).
|
void |
detect(Mat image,
MatOfKeyPoint keypoints,
Mat mask)
Detects keypoints in an image (first variant) or image set (second variant).
|
void |
detectAndCompute(Mat image,
Mat mask,
MatOfKeyPoint keypoints,
Mat descriptors)
Detects keypoints and computes the descriptors
|
void |
detectAndCompute(Mat image,
Mat mask,
MatOfKeyPoint keypoints,
Mat descriptors,
boolean useProvidedKeypoints)
Detects keypoints and computes the descriptors
|
boolean |
empty()
Returns true if the Algorithm is empty (e.g.
|
java.lang.String |
getDefaultName()
Returns the algorithm string identifier.
|
void |
read(java.lang.String fileName) |
void |
write(java.lang.String fileName) |
clear, getNativeObjAddr, save
public static Feature2D __fromPtr__(long addr)
public void compute(java.util.List<Mat> images, java.util.List<MatOfKeyPoint> keypoints, java.util.List<Mat> descriptors)
images
- Image set.keypoints
- Input collection of keypoints. Keypoints for which a descriptor cannot be
computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint
with several dominant orientations (for each orientation).descriptors
- Computed descriptors. In the second variant of the method descriptors[i] are
descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the
descriptor for keypoint j-th keypoint.public void compute(Mat image, MatOfKeyPoint keypoints, Mat descriptors)
image
- Image.keypoints
- Input collection of keypoints. Keypoints for which a descriptor cannot be
computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint
with several dominant orientations (for each orientation).descriptors
- Computed descriptors. In the second variant of the method descriptors[i] are
descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the
descriptor for keypoint j-th keypoint.public int defaultNorm()
public int descriptorSize()
public int descriptorType()
public void detect(java.util.List<Mat> images, java.util.List<MatOfKeyPoint> keypoints)
images
- Image set.keypoints
- The detected keypoints. In the second variant of the method keypoints[i] is a set
of keypoints detected in images[i] .
masks[i] is a mask for images[i].public void detect(java.util.List<Mat> images, java.util.List<MatOfKeyPoint> keypoints, java.util.List<Mat> masks)
images
- Image set.keypoints
- The detected keypoints. In the second variant of the method keypoints[i] is a set
of keypoints detected in images[i] .masks
- Masks for each input image specifying where to look for keypoints (optional).
masks[i] is a mask for images[i].public void detect(Mat image, MatOfKeyPoint keypoints)
image
- Image.keypoints
- The detected keypoints. In the second variant of the method keypoints[i] is a set
of keypoints detected in images[i] .
matrix with non-zero values in the region of interest.public void detect(Mat image, MatOfKeyPoint keypoints, Mat mask)
image
- Image.keypoints
- The detected keypoints. In the second variant of the method keypoints[i] is a set
of keypoints detected in images[i] .mask
- Mask specifying where to look for keypoints (optional). It must be a 8-bit integer
matrix with non-zero values in the region of interest.public void detectAndCompute(Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors)
image
- automatically generatedmask
- automatically generatedkeypoints
- automatically generateddescriptors
- automatically generatedpublic void detectAndCompute(Mat image, Mat mask, MatOfKeyPoint keypoints, Mat descriptors, boolean useProvidedKeypoints)
image
- automatically generatedmask
- automatically generatedkeypoints
- automatically generateddescriptors
- automatically generateduseProvidedKeypoints
- automatically generatedpublic boolean empty()
Algorithm
public java.lang.String getDefaultName()
Algorithm
getDefaultName
in class Algorithm
public void read(java.lang.String fileName)
public void write(java.lang.String fileName)
Generated on 2019-12-20 14:24:32 / OpenCV 4.2.0