View Source Evision.LineDescriptor (Evision v0.1.28)
Link to this section Summary
Functions
Draws keylines.
Draws keylines.
Draws the found matches of keylines from two images.
Draws the found matches of keylines from two images.
Link to this section Types
@type t() :: %Evision.LineDescriptor{ref: reference()}
Type that represents an LineDescriptor
struct.
ref.
reference()
The underlying erlang resource variable.
Link to this section Functions
@spec drawKeylines(Evision.Mat.maybe_mat_in(), [ Evision.LineDescriptor.BinaryDescriptor.KeyLine.t() ]) :: Evision.Mat.t() | {:error, String.t()}
Draws keylines.
Positional Arguments
image:
Evision.Mat.t()
.input image
keylines:
[Evision.LineDescriptor.BinaryDescriptor.KeyLine]
.keylines to be drawn
Keyword Arguments
color:
Scalar
.color of lines to be drawn (if set to defaul value, color is chosen randomly)
flags:
int
.drawing flags
Return
outImage:
Evision.Mat.t()
.output image to draw on
Python prototype (for reference only):
drawKeylines(image, keylines[, outImage[, color[, flags]]]) -> outImage
@spec drawKeylines( Evision.Mat.maybe_mat_in(), [Evision.LineDescriptor.BinaryDescriptor.KeyLine.t()], [{atom(), term()}, ...] | nil ) :: Evision.Mat.t() | {:error, String.t()}
Draws keylines.
Positional Arguments
image:
Evision.Mat.t()
.input image
keylines:
[Evision.LineDescriptor.BinaryDescriptor.KeyLine]
.keylines to be drawn
Keyword Arguments
color:
Scalar
.color of lines to be drawn (if set to defaul value, color is chosen randomly)
flags:
int
.drawing flags
Return
outImage:
Evision.Mat.t()
.output image to draw on
Python prototype (for reference only):
drawKeylines(image, keylines[, outImage[, color[, flags]]]) -> outImage
@spec drawLineMatches( Evision.Mat.maybe_mat_in(), [Evision.LineDescriptor.BinaryDescriptor.KeyLine.t()], Evision.Mat.maybe_mat_in(), [Evision.LineDescriptor.BinaryDescriptor.KeyLine.t()], [Evision.DMatch.t()] ) :: Evision.Mat.t() | {:error, String.t()}
Draws the found matches of keylines from two images.
Positional Arguments
img1:
Evision.Mat.t()
.first image
keylines1:
[Evision.LineDescriptor.BinaryDescriptor.KeyLine]
.keylines extracted from first image
img2:
Evision.Mat.t()
.second image
keylines2:
[Evision.LineDescriptor.BinaryDescriptor.KeyLine]
.keylines extracted from second image
matches1to2:
[Evision.DMatch]
.vector of matches
Keyword Arguments
matchColor:
Scalar
.drawing color for matches (chosen randomly in case of default value)
singleLineColor:
Scalar
.drawing color for keylines (chosen randomly in case of default value)
matchesMask:
[char]
.mask to indicate which matches must be drawn
flags:
int
.drawing flags, see DrawLinesMatchesFlags
Return
outImg:
Evision.Mat.t()
.output matrix to draw on
Note: If both matchColor and singleLineColor are set to their default values, function draws matched lines and line connecting them with same color
Python prototype (for reference only):
drawLineMatches(img1, keylines1, img2, keylines2, matches1to2[, outImg[, matchColor[, singleLineColor[, matchesMask[, flags]]]]]) -> outImg
drawLineMatches(img1, keylines1, img2, keylines2, matches1to2, opts)
View Source@spec drawLineMatches( Evision.Mat.maybe_mat_in(), [Evision.LineDescriptor.BinaryDescriptor.KeyLine.t()], Evision.Mat.maybe_mat_in(), [Evision.LineDescriptor.BinaryDescriptor.KeyLine.t()], [Evision.DMatch.t()], [{atom(), term()}, ...] | nil ) :: Evision.Mat.t() | {:error, String.t()}
Draws the found matches of keylines from two images.
Positional Arguments
img1:
Evision.Mat.t()
.first image
keylines1:
[Evision.LineDescriptor.BinaryDescriptor.KeyLine]
.keylines extracted from first image
img2:
Evision.Mat.t()
.second image
keylines2:
[Evision.LineDescriptor.BinaryDescriptor.KeyLine]
.keylines extracted from second image
matches1to2:
[Evision.DMatch]
.vector of matches
Keyword Arguments
matchColor:
Scalar
.drawing color for matches (chosen randomly in case of default value)
singleLineColor:
Scalar
.drawing color for keylines (chosen randomly in case of default value)
matchesMask:
[char]
.mask to indicate which matches must be drawn
flags:
int
.drawing flags, see DrawLinesMatchesFlags
Return
outImg:
Evision.Mat.t()
.output matrix to draw on
Note: If both matchColor and singleLineColor are set to their default values, function draws matched lines and line connecting them with same color
Python prototype (for reference only):
drawLineMatches(img1, keylines1, img2, keylines2, matches1to2[, outImg[, matchColor[, singleLineColor[, matchesMask[, flags]]]]]) -> outImg