Ask Your Question
0

Learning how to make image comparsion programs.

asked 2019-05-11 07:26:42 -0600

Sholi gravatar image

I am good in C++ programming & I wish to learn proper step by step on how to write code to compare images. I refer not to those programs which simply use absdiff to find difference & display it. I refer to more complex algorithms like ORB,BRIEF etc I found old programs that implemented these algorithms but they are incompatible with latest version of OpenCV Can u suggest me good book, guide or tutorial that covers version 4 or atleast above 3.4 version . I prefer C++ than python ,but i can code in both language.

edit retag flag offensive close merge delete

Comments

see this and this

sturkmen gravatar imagesturkmen ( 2019-05-12 08:37:15 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
5

answered 2019-05-11 08:38:10 -0600

Before anything, I would recommend you start by looking at OpenCV's documentation. Since you do understand Python, they have tutorials covering the different stages of feature matching as shown here. Read through all of them and truly grasp the setup and get a high level algorithm understanding. If you'd like to dive even deeper, they cite the respective publications and you can go read.

If the OpenCV tutorial is a little too dense for you, look at this blogpost instead. It's written in Python though.

Now, here's a C++ explanation & implementation that covers what you are looking for and even adapted an object tracker as well. The code is easy to understand and refractor should you not want the tracker.

If the above code is too convoluted, they have a simpler C++ version with just the feature matcher.

Now, keep in mind the above mentioned guides only use a small portion of the overall framework. If you want to test it out with different settings to see which one would work best with your problem-set, the documentation provides the framework architecture for feature detector.

I'll let you find the corresponding matcher framework.

Happy coding, cheers!

PS: In some of the OpenCV sites I have mentioned above, you can change it so as the content reflects your specified library version.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-05-11 07:26:42 -0600

Seen: 359 times

Last updated: May 11 '19