View Source Evision.KeyPoint (Evision v0.1.17)
Link to this section Summary
Types
Type that represents an Evision.KeyPoint
struct.
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
convert
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 only):
convert(points2f[, size[, response[, octave[, class_id]]]]) -> keypoints
@spec convert([{number(), number()}], [{atom(), term()}, ...] | nil) :: [t()] | {:error, String.t()}
convert
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 only):
convert(points2f[, size[, response[, octave[, class_id]]]]) -> keypoints
KeyPoint
Return
- self:
Evision.KeyPoint
Python prototype (for reference only):
KeyPoint() -> <KeyPoint object>
KeyPoint
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 only):
KeyPoint(x, y, size[, angle[, response[, octave[, class_id]]]]) -> <KeyPoint object>
@spec keyPoint(number(), number(), number(), [{atom(), term()}, ...] | nil) :: t() | {:error, String.t()}
KeyPoint
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 only):
KeyPoint(x, y, size[, angle[, response[, octave[, class_id]]]]) -> <KeyPoint object>
overlap
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 only):
overlap(kp1, kp2) -> retval