Ask Your Question

How to add an algorithm to OpenCV?

asked 2014-09-19 17:48:19 -0500


I'm using OpenCV2.4.9 with Visual Studio 2012 on Windows 8.1

I added a new descriptor to OpenCV and I would like to test it outside of the OpenCV solution (in a new solution).

How do I create updated lib and hpp files? I would like to have a new "build" directory that will contain all the updated files (lib, dll and hpp) according to the updated code.

Do I need to apply CMake again? perhaps building the project "BUILD" in the OpenCV solution?

Thanks in advance,


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-21 07:43:26 -0500

yes123 gravatar image

You can just put your algorithm in a separate hpp/cpp. Something like:


At this point you can compile it and obtain your library. Link this in a new solution and you should good to go.

edit flag offensive delete link more


Thanks for your help!

GilLevi gravatar imageGilLevi ( 2014-09-21 16:47:23 -0500 )edit

Question Tools


Asked: 2014-09-19 17:48:19 -0500

Seen: 148 times

Last updated: Sep 21 '14