org.opencv.features2d
public class KeyPoint extends java.lang.Object
Data structure for salient point detectors.
coordinates of the keypoint
diameter of the meaningful keypoint neighborhood
// C++ code:
computed orientation of the keypoint (-1 if not applicable). Its possible values are in a range [0,360) degrees. It is measured relative to image coordinate system (y-axis is directed downward), ie in clockwise.
the response by which the most strong keypoints have been selected. Can be used for further sorting or subsampling
octave (pyramid layer) from which the keypoint has been extracted
object id that can be used to clustered keypoints by an object they belong to
Modifier and Type | Field and Description |
---|---|
float |
angle
Computed orientation of the keypoint (-1 if not applicable).
|
int |
class_id
Object ID, that can be used to cluster keypoints by an object they
belong to.
|
int |
octave
Octave (pyramid layer), from which the keypoint has been extracted.
|
Point |
pt
Coordinates of the keypoint.
|
float |
response
The response, by which the strongest keypoints have been selected.
|
float |
size
Diameter of the useful keypoint adjacent area.
|
Constructor and Description |
---|
KeyPoint()
The keypoint constructors
|
KeyPoint(float x,
float y,
float _size)
The keypoint constructors
|
KeyPoint(float x,
float y,
float _size,
float _angle)
The keypoint constructors
|
KeyPoint(float x,
float y,
float _size,
float _angle,
float _response)
The keypoint constructors
|
KeyPoint(float x,
float y,
float _size,
float _angle,
float _response,
int _octave)
The keypoint constructors
|
KeyPoint(float x,
float y,
float _size,
float _angle,
float _response,
int _octave,
int _class_id)
The keypoint constructors
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public float angle
public int class_id
public int octave
public Point pt
public float response
public float size
public KeyPoint()
The keypoint constructors
public KeyPoint(float x, float y, float _size)
The keypoint constructors
x
- x-coordinate of the keypointy
- y-coordinate of the keypoint_size
- keypoint diameterpublic KeyPoint(float x, float y, float _size, float _angle)
The keypoint constructors
x
- x-coordinate of the keypointy
- y-coordinate of the keypoint_size
- keypoint diameter_angle
- keypoint orientationpublic KeyPoint(float x, float y, float _size, float _angle, float _response)
The keypoint constructors
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)public KeyPoint(float x, float y, float _size, float _angle, float _response, int _octave)
The keypoint constructors
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 detectedpublic KeyPoint(float x, float y, float _size, float _angle, float _response, int _octave, int _class_id)
The keypoint constructors
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 id