Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

draw matched features in same image

Hi,

I have two frame sequences; C:\fakepath\image1.jpg and C:\fakepath\image2.jpg. When I use drawmatches function in opencv, it shows a window with two consecutive frames next to each other for matching.

However, I want to show feature points of frame 1(image1.jpg) plotted in red, the feature points of frame 2 (image1.jpg) plotted in blue (also plotted in the image1.jpg) and draw a line between matched points.

How can I do it in OpenCV?

Regards

click to hide/show revision 2
retagged

updated 2014-02-22 15:53:37 -0600

berak gravatar image

draw matched features in same image

Hi,

I have two frame sequences; C:\fakepath\image1.jpg and C:\fakepath\image2.jpg. When I use drawmatches function in opencv, it shows a window with two consecutive frames next to each other for matching.

However, I want to show feature points of frame 1(image1.jpg) plotted in red, the feature points of frame 2 (image1.jpg) plotted in blue (also plotted in the image1.jpg) and draw a line between matched points.

How can I do it in OpenCV?

Regards