draw matched features in same image

asked Feb 22 '14

sy456 gravatar image

updated Feb 22 '14

berak gravatar 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

Preview: (hide)

Comments

1

You can do it manually with line and circle functions. Check the source code of drawMatches for reference.

Daniil Osokin gravatar imageDaniil Osokin (Feb 24 '14)edit