View Source Evision.KeyPoint (Evision v0.2.9)
Summary
Types
@type t() :: %Evision.KeyPoint{ref: reference()}
Type that represents an KeyPoint
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
@spec convert(Keyword.t()) :: any() | {:error, String.t()}
@spec convert([{number(), number()}]) :: [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:
integer()
.pyramid octave in which the keypoint has been detected
class_id:
integer()
.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()}], [class_id: term(), octave: term(), response: term(), size: 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:
integer()
.pyramid octave in which the keypoint has been detected
class_id:
integer()
.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.t()
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:
integer()
.pyramid octave in which the keypoint has been detected
class_id:
integer()
.object id
Return
- self:
Evision.KeyPoint.t()
Python prototype (for reference only):
KeyPoint(x, y, size[, angle[, response[, octave[, class_id]]]]) -> <KeyPoint object>
@spec keyPoint( number(), number(), number(), [angle: term(), class_id: term(), octave: term(), response: 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:
integer()
.pyramid octave in which the keypoint has been detected
class_id:
integer()
.object id
Return
- self:
Evision.KeyPoint.t()
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