Draws the found matches of keylines from two images
outImg = cv.drawLineMatches(img1, keypoints1, img2, keypoints2, matches1to2)
outImg = cv.drawLineMatches(..., 'OptionName', optionValue, ...)
Input
- img1 First image.
- keypoints1 keylines extracted from first image.
- img2 Second image.
- keypoints2 keylines extracted from second image.
- matches1to2 vector of matches.
Output
- outImg output matrix to draw on.
Options
- MatchColor drawing color for matches (chosen randomly in case of
default value). default [-1,-1,-1,-1].
- SingleLineColor drawing color for keylines (chosen randomly in case of
default value). default [-1,-1,-1,-1].
- MatchesMask mask to indicate which matches must be drawn.
default empty.
- NotDrawSingleLines Single keylines will not be drawn. default false
- OutImage If set, matches will be drawn on existing content of output
image, otherwise source images are used instead. Not set by default.
If both MatchColor
and SingleLineColor
are set to their default values,
function draws matched lines and line connecting them with same color.