@Namespace(value="cv") @Properties(inherit=opencv_features2d.class) public class Feature2D extends Algorithm
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Feature2D()
Default native constructor.
|
Feature2D(long size)
Native array allocator.
|
Feature2D(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
compute(GpuMat image,
KeyPointVector keypoints,
GpuMat descriptors) |
void |
compute(GpuMatVector images,
KeyPointVectorVector keypoints,
GpuMatVector descriptors) |
void |
compute(Mat image,
KeyPointVector keypoints,
Mat descriptors)
\brief Computes the descriptors for a set of keypoints detected in an image (first variant) or image set
(second variant).
|
void |
compute(MatVector images,
KeyPointVectorVector keypoints,
MatVector descriptors)
\overload
|
void |
compute(UMat image,
KeyPointVector keypoints,
UMat descriptors) |
void |
compute(UMatVector images,
KeyPointVectorVector keypoints,
UMatVector descriptors) |
int |
defaultNorm() |
int |
descriptorSize() |
int |
descriptorType() |
void |
detect(GpuMat image,
KeyPointVector keypoints) |
void |
detect(GpuMat image,
KeyPointVector keypoints,
GpuMat mask) |
void |
detect(GpuMatVector images,
KeyPointVectorVector keypoints) |
void |
detect(GpuMatVector images,
KeyPointVectorVector keypoints,
GpuMatVector masks) |
void |
detect(Mat image,
KeyPointVector keypoints) |
void |
detect(Mat image,
KeyPointVector keypoints,
Mat mask)
\brief Detects keypoints in an image (first variant) or image set (second variant).
|
void |
detect(MatVector images,
KeyPointVectorVector keypoints) |
void |
detect(MatVector images,
KeyPointVectorVector keypoints,
MatVector masks)
\overload
|
void |
detect(UMat image,
KeyPointVector keypoints) |
void |
detect(UMat image,
KeyPointVector keypoints,
UMat mask) |
void |
detect(UMatVector images,
KeyPointVectorVector keypoints) |
void |
detect(UMatVector images,
KeyPointVectorVector keypoints,
UMatVector masks) |
void |
detectAndCompute(GpuMat image,
GpuMat mask,
KeyPointVector keypoints,
GpuMat descriptors) |
void |
detectAndCompute(GpuMat image,
GpuMat mask,
KeyPointVector keypoints,
GpuMat descriptors,
boolean useProvidedKeypoints) |
void |
detectAndCompute(Mat image,
Mat mask,
KeyPointVector keypoints,
Mat descriptors) |
void |
detectAndCompute(Mat image,
Mat mask,
KeyPointVector keypoints,
Mat descriptors,
boolean useProvidedKeypoints)
Detects keypoints and computes the descriptors
|
void |
detectAndCompute(UMat image,
UMat mask,
KeyPointVector keypoints,
UMat descriptors) |
void |
detectAndCompute(UMat image,
UMat mask,
KeyPointVector keypoints,
UMat descriptors,
boolean useProvidedKeypoints) |
boolean |
empty()
Return true if detector object is empty
|
BytePointer |
getDefaultName()
Returns the algorithm string identifier.
|
Feature2D |
position(long position) |
void |
read(BytePointer fileName) |
void |
read(FileNode arg0)
\brief Reads algorithm parameters from a file storage
|
void |
read(String fileName) |
void |
write(BytePointer fileName) |
void |
write(FileStorage arg0)
\brief Stores algorithm parameters in a file storage
|
void |
write(FileStorage fs,
BytePointer name)
\brief simplified API for language bindings
\overload
|
void |
write(FileStorage fs,
String name) |
void |
write(String fileName) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public Feature2D()
public Feature2D(long size)
Pointer.position(long)
.public Feature2D(Pointer p)
Pointer.Pointer(Pointer)
.public void detect(@ByVal Mat image, @ByRef KeyPointVector keypoints, @ByVal(nullValue="cv::InputArray(cv::noArray())") 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 detect(@ByVal Mat image, @ByRef KeyPointVector keypoints)
public void detect(@ByVal UMat image, @ByRef KeyPointVector keypoints, @ByVal(nullValue="cv::InputArray(cv::noArray())") UMat mask)
public void detect(@ByVal UMat image, @ByRef KeyPointVector keypoints)
public void detect(@ByVal GpuMat image, @ByRef KeyPointVector keypoints, @ByVal(nullValue="cv::InputArray(cv::noArray())") GpuMat mask)
public void detect(@ByVal GpuMat image, @ByRef KeyPointVector keypoints)
public void detect(@ByVal MatVector images, @ByRef KeyPointVectorVector keypoints, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector 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(@ByVal MatVector images, @ByRef KeyPointVectorVector keypoints)
public void detect(@ByVal UMatVector images, @ByRef KeyPointVectorVector keypoints, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks)
public void detect(@ByVal UMatVector images, @ByRef KeyPointVectorVector keypoints)
public void detect(@ByVal GpuMatVector images, @ByRef KeyPointVectorVector keypoints, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks)
public void detect(@ByVal GpuMatVector images, @ByRef KeyPointVectorVector keypoints)
public void compute(@ByVal Mat image, @ByRef KeyPointVector keypoints, @ByVal 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 void compute(@ByVal UMat image, @ByRef KeyPointVector keypoints, @ByVal UMat descriptors)
public void compute(@ByVal GpuMat image, @ByRef KeyPointVector keypoints, @ByVal GpuMat descriptors)
public void compute(@ByVal MatVector images, @ByRef KeyPointVectorVector keypoints, @ByVal MatVector 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(@ByVal UMatVector images, @ByRef KeyPointVectorVector keypoints, @ByVal UMatVector descriptors)
public void compute(@ByVal GpuMatVector images, @ByRef KeyPointVectorVector keypoints, @ByVal GpuMatVector descriptors)
public void detectAndCompute(@ByVal Mat image, @ByVal Mat mask, @ByRef KeyPointVector keypoints, @ByVal Mat descriptors, @Cast(value="bool") boolean useProvidedKeypoints)
public void detectAndCompute(@ByVal Mat image, @ByVal Mat mask, @ByRef KeyPointVector keypoints, @ByVal Mat descriptors)
public void detectAndCompute(@ByVal UMat image, @ByVal UMat mask, @ByRef KeyPointVector keypoints, @ByVal UMat descriptors, @Cast(value="bool") boolean useProvidedKeypoints)
public void detectAndCompute(@ByVal UMat image, @ByVal UMat mask, @ByRef KeyPointVector keypoints, @ByVal UMat descriptors)
public void detectAndCompute(@ByVal GpuMat image, @ByVal GpuMat mask, @ByRef KeyPointVector keypoints, @ByVal GpuMat descriptors, @Cast(value="bool") boolean useProvidedKeypoints)
public void detectAndCompute(@ByVal GpuMat image, @ByVal GpuMat mask, @ByRef KeyPointVector keypoints, @ByVal GpuMat descriptors)
public int descriptorSize()
public int descriptorType()
public int defaultNorm()
public void write(@opencv_core.Str BytePointer fileName)
public void write(@opencv_core.Str String fileName)
public void read(@opencv_core.Str BytePointer fileName)
public void read(@opencv_core.Str String fileName)
public void write(@ByRef FileStorage arg0)
Algorithm
public void read(@Const @ByRef FileNode arg0)
Algorithm
@opencv_core.Str public BytePointer getDefaultName()
Algorithm
getDefaultName
in class Algorithm
public void write(@opencv_core.Ptr FileStorage fs, @opencv_core.Str BytePointer name)
Algorithm
public void write(@opencv_core.Ptr FileStorage fs, @opencv_core.Str String name)
Copyright © 2020. All rights reserved.