View Source Evision.LineDescriptor (Evision v0.2.9)
Summary
Functions
Draws keylines.
Draws keylines.
Draws the found matches of keylines from two images.
Draws the found matches of keylines from two images.
Types
@type t() :: %Evision.LineDescriptor{ref: reference()}
Type that represents an LineDescriptor
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
@spec drawKeylines(Evision.Mat.maybe_mat_in(), [Evision.LineDescriptor.KeyLine.t()]) :: Evision.Mat.t() | {:error, String.t()}
Draws keylines.
Positional Arguments
image:
Evision.Mat
.input image
keylines:
[Evision.LineDescriptor.KeyLine]
.keylines to be drawn
Keyword Arguments
color:
Evision.scalar()
.color of lines to be drawn (if set to defaul value, color is chosen randomly)
flags:
integer()
.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.KeyLine.t()], [color: term(), flags: term()] | nil ) :: Evision.Mat.t() | {:error, String.t()}
Draws keylines.
Positional Arguments
image:
Evision.Mat
.input image
keylines:
[Evision.LineDescriptor.KeyLine]
.keylines to be drawn
Keyword Arguments
color:
Evision.scalar()
.color of lines to be drawn (if set to defaul value, color is chosen randomly)
flags:
integer()
.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.KeyLine.t()], Evision.Mat.maybe_mat_in(), [Evision.LineDescriptor.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
.first image
keylines1:
[Evision.LineDescriptor.KeyLine]
.keylines extracted from first image
img2:
Evision.Mat
.second image
keylines2:
[Evision.LineDescriptor.KeyLine]
.keylines extracted from second image
matches1to2:
[Evision.DMatch]
.vector of matches
Keyword Arguments
matchColor:
Evision.scalar()
.drawing color for matches (chosen randomly in case of default value)
singleLineColor:
Evision.scalar()
.drawing color for keylines (chosen randomly in case of default value)
matchesMask:
[char]
.mask to indicate which matches must be drawn
flags:
integer()
.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.KeyLine.t()], Evision.Mat.maybe_mat_in(), [Evision.LineDescriptor.KeyLine.t()], [Evision.DMatch.t()], [ flags: term(), matchColor: term(), matchesMask: term(), singleLineColor: term() ] | nil ) :: Evision.Mat.t() | {:error, String.t()}
Draws the found matches of keylines from two images.
Positional Arguments
img1:
Evision.Mat
.first image
keylines1:
[Evision.LineDescriptor.KeyLine]
.keylines extracted from first image
img2:
Evision.Mat
.second image
keylines2:
[Evision.LineDescriptor.KeyLine]
.keylines extracted from second image
matches1to2:
[Evision.DMatch]
.vector of matches
Keyword Arguments
matchColor:
Evision.scalar()
.drawing color for matches (chosen randomly in case of default value)
singleLineColor:
Evision.scalar()
.drawing color for keylines (chosen randomly in case of default value)
matchesMask:
[char]
.mask to indicate which matches must be drawn
flags:
integer()
.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