Ask Your Question
0

How to add an algorithm to OpenCV?

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

Hi,

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,

Gil.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

yes123 gravatar image

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

GiLDescriptor.hpp
GiLDescriptor.cpp

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

Comments

Thanks for your help!

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

Question Tools

Stats

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

Seen: 252 times

Last updated: Sep 21 '14