@Namespace(value="cv")
@NoOffset
public static class opencv_core.KeyPoint
extends org.bytedeco.javacpp.Pointer
The class instance stores a keypoint, i.e. a point feature found by one of many available keypoint detectors, such as Harris corner detector, #FAST, %StarDetector, %SURF, %SIFT etc.
The keypoint is characterized by the 2D position, scale (proportional to the diameter of the neighborhood that needs to be taken into account), orientation and some other parameters. The keypoint neighborhood is then analyzed by another algorithm that builds a descriptor (usually represented as a feature vector). The keypoints representing the same object in different images can then be matched using %KDTree or another method.
| Constructor and Description |
|---|
KeyPoint()
the default constructor
|
KeyPoint(float x,
float y,
float _size) |
KeyPoint(float x,
float y,
float _size,
float _angle,
float _response,
int _octave,
int _class_id) |
KeyPoint(long size)
Native array allocator.
|
KeyPoint(opencv_core.Point2f _pt,
float _size) |
KeyPoint(opencv_core.Point2f _pt,
float _size,
float _angle,
float _response,
int _octave,
int _class_id) |
KeyPoint(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
angle()
computed orientation of the keypoint (-1 if not applicable);
it's in [0,360) degrees and measured relative to
image coordinate system, ie in clockwise.
|
opencv_core.KeyPoint |
angle(float angle) |
int |
class_id()
object class (if the keypoints need to be clustered by an object they belong to)
|
opencv_core.KeyPoint |
class_id(int class_id) |
static void |
convert(opencv_core.KeyPointVector keypoints,
opencv_core.Point2fVector points2f) |
static void |
convert(opencv_core.KeyPointVector keypoints,
opencv_core.Point2fVector points2f,
int[] keypointIndexes) |
static void |
convert(opencv_core.KeyPointVector keypoints,
opencv_core.Point2fVector points2f,
IntBuffer keypointIndexes) |
static void |
convert(opencv_core.KeyPointVector keypoints,
opencv_core.Point2fVector points2f,
org.bytedeco.javacpp.IntPointer keypointIndexes)
This method converts vector of keypoints to vector of points or the reverse, where each keypoint is
assigned the same size and the same orientation.
|
static void |
convert(opencv_core.Point2fVector points2f,
opencv_core.KeyPointVector keypoints) |
static void |
convert(opencv_core.Point2fVector points2f,
opencv_core.KeyPointVector keypoints,
float size,
float response,
int octave,
int class_id)
\overload
|
long |
hash() |
int |
octave()
octave (pyramid layer) from which the keypoint has been extracted
|
opencv_core.KeyPoint |
octave(int octave) |
static float |
overlap(opencv_core.KeyPoint kp1,
opencv_core.KeyPoint kp2)
This method computes overlap for pair of keypoints.
|
opencv_core.KeyPoint |
position(long position) |
opencv_core.Point2f |
pt()
coordinates of the keypoints
|
opencv_core.KeyPoint |
pt(opencv_core.Point2f pt) |
float |
response()
the response by which the most strong keypoints have been selected.
|
opencv_core.KeyPoint |
response(float response) |
float |
size()
diameter of the meaningful keypoint neighborhood
|
opencv_core.KeyPoint |
size(float size) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic KeyPoint(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public KeyPoint(long size)
Pointer.position(long).public KeyPoint()
public KeyPoint(@ByVal
opencv_core.Point2f _pt,
float _size,
float _angle,
float _response,
int _octave,
int _class_id)
_pt - x & y coordinates of the keypoint_size - keypoint diameter_angle - keypoint orientation_response - keypoint detector response on the keypoint (that is, strength of the keypoint)_octave - pyramid octave in which the keypoint has been detected_class_id - object idpublic KeyPoint(@ByVal
opencv_core.Point2f _pt,
float _size)
public KeyPoint(float x,
float y,
float _size,
float _angle,
float _response,
int _octave,
int _class_id)
x - x-coordinate of the keypointy - y-coordinate of the keypoint_size - keypoint diameter_angle - keypoint orientation_response - keypoint detector response on the keypoint (that is, strength of the keypoint)_octave - pyramid octave in which the keypoint has been detected_class_id - object idpublic KeyPoint(float x,
float y,
float _size)
public opencv_core.KeyPoint position(long position)
position in class org.bytedeco.javacpp.Pointer@Cast(value="size_t") public long hash()
public static void convert(@Const @ByRef
opencv_core.KeyPointVector keypoints,
@ByRef
opencv_core.Point2fVector points2f,
@StdVector
org.bytedeco.javacpp.IntPointer keypointIndexes)
keypoints - Keypoints obtained from any feature detection algorithm like SIFT/SURF/ORBpoints2f - Array of (x,y) coordinates of each keypointkeypointIndexes - Array of indexes of keypoints to be converted to points. (Acts like a mask to
convert only specified keypoints)public static void convert(@Const @ByRef
opencv_core.KeyPointVector keypoints,
@ByRef
opencv_core.Point2fVector points2f)
public static void convert(@Const @ByRef
opencv_core.KeyPointVector keypoints,
@ByRef
opencv_core.Point2fVector points2f,
@StdVector
IntBuffer keypointIndexes)
public static void convert(@Const @ByRef
opencv_core.KeyPointVector keypoints,
@ByRef
opencv_core.Point2fVector points2f,
@StdVector
int[] keypointIndexes)
public static void convert(@Const @ByRef
opencv_core.Point2fVector points2f,
@ByRef
opencv_core.KeyPointVector keypoints,
float size,
float response,
int octave,
int class_id)
points2f - Array of (x,y) coordinates of each keypointkeypoints - Keypoints obtained from any feature detection algorithm like SIFT/SURF/ORBsize - keypoint diameterresponse - keypoint detector response on the keypoint (that is, strength of the keypoint)octave - pyramid octave in which the keypoint has been detectedclass_id - object idpublic static void convert(@Const @ByRef
opencv_core.Point2fVector points2f,
@ByRef
opencv_core.KeyPointVector keypoints)
public static float overlap(@Const @ByRef
opencv_core.KeyPoint kp1,
@Const @ByRef
opencv_core.KeyPoint kp2)
kp1 - First keypointkp2 - Second keypoint@ByRef public opencv_core.Point2f pt()
public opencv_core.KeyPoint pt(opencv_core.Point2f pt)
public float size()
public opencv_core.KeyPoint size(float size)
public float angle()
public opencv_core.KeyPoint angle(float angle)
public float response()
public opencv_core.KeyPoint response(float response)
public int octave()
public opencv_core.KeyPoint octave(int octave)
public int class_id()
public opencv_core.KeyPoint class_id(int class_id)
Copyright © 2018. All rights reserved.