View Source Evision.KeyPoint (Evision v0.1.11)
Link to this section Summary
Types
Type that represents an Evision.KeyPoint
struct.
Functions
Positional Arguments
points2f:
[Point2f]
.
Positional Arguments
points2f:
[Point2f]
.
Positional Arguments
x:
float
.
Positional Arguments
x:
float
.
Positional Arguments
kp1:
Evision.KeyPoint
.
Link to this section Types
@type t() :: %Evision.KeyPoint{ref: reference()}
Type that represents an Evision.KeyPoint
struct.
ref.
reference()
The underlying erlang resource variable.
Link to this section Functions
Positional Arguments
points2f:
[Point2f]
.Array of (x,y) coordinates of each keypoint
Keyword Arguments
size:
float
.keypoint diameter
response:
float
.keypoint detector response on the keypoint (that is, strength of the keypoint)
octave:
int
.pyramid octave in which the keypoint has been detected
class_id:
int
.object id
Return
keypoints:
[Evision.KeyPoint]
.Keypoints obtained from any feature detection algorithm like SIFT/SURF/ORB
Has overloading in C++
Python prototype (for reference):
convert(points2f[, size[, response[, octave[, class_id]]]]) -> keypoints
@spec convert([{number(), number()}], [{atom(), term()}, ...] | nil) :: [t()] | {:error, String.t()}
Positional Arguments
points2f:
[Point2f]
.Array of (x,y) coordinates of each keypoint
Keyword Arguments
size:
float
.keypoint diameter
response:
float
.keypoint detector response on the keypoint (that is, strength of the keypoint)
octave:
int
.pyramid octave in which the keypoint has been detected
class_id:
int
.object id
Return
keypoints:
[Evision.KeyPoint]
.Keypoints obtained from any feature detection algorithm like SIFT/SURF/ORB
Has overloading in C++
Python prototype (for reference):
convert(points2f[, size[, response[, octave[, class_id]]]]) -> keypoints
Return
- self:
Evision.KeyPoint
Python prototype (for reference):
KeyPoint() -> <KeyPoint object>
Positional Arguments
x:
float
.x-coordinate of the keypoint
y:
float
.y-coordinate of the keypoint
size:
float
.keypoint diameter
Keyword Arguments
angle:
float
.keypoint orientation
response:
float
.keypoint detector response on the keypoint (that is, strength of the keypoint)
octave:
int
.pyramid octave in which the keypoint has been detected
class_id:
int
.object id
Return
- self:
Evision.KeyPoint
Python prototype (for reference):
KeyPoint(x, y, size[, angle[, response[, octave[, class_id]]]]) -> <KeyPoint object>
@spec keyPoint(number(), number(), number(), [{atom(), term()}, ...] | nil) :: t() | {:error, String.t()}
Positional Arguments
x:
float
.x-coordinate of the keypoint
y:
float
.y-coordinate of the keypoint
size:
float
.keypoint diameter
Keyword Arguments
angle:
float
.keypoint orientation
response:
float
.keypoint detector response on the keypoint (that is, strength of the keypoint)
octave:
int
.pyramid octave in which the keypoint has been detected
class_id:
int
.object id
Return
- self:
Evision.KeyPoint
Python prototype (for reference):
KeyPoint(x, y, size[, angle[, response[, octave[, class_id]]]]) -> <KeyPoint object>
Positional Arguments
kp1:
Evision.KeyPoint
.First keypoint
kp2:
Evision.KeyPoint
.Second keypoint
Return
- retval:
float
This method computes overlap for pair of keypoints. Overlap is the ratio between area of keypoint regions' intersection and area of keypoint regions' union (considering keypoint region as circle). If they don't overlap, we get zero. If they coincide at same location with same size, we get 1.
Python prototype (for reference):
overlap(kp1, kp2) -> retval