Prelucrarea si Analiza Imaginilor

Introducere in OpenCV:

Configurarea DEV-C++ pentru lucrul cu OpenCV 2.0


OpenCV Version 2.0 does not install in Program Files directory, instead it goes into C:\OpenCV2.0\ folders.

1. Add a compiler to the default compiler (Call it any name.. OpenCV is a good option)

2. Check “Add these commands to the linker command line” and add the following commands:
-llibcxcore200 -llibcv200 -llibcvaux200 -llibhighgui200 -llibml200

3. In the directories.. add the following lines and move them to the top (using arrow)
a. C++ Includes: C:\OpenCV2.0\include\opencv
b. C Includes: C:\OpenCV2.0\include\opencv
c. Libraries: C:\OpenCV2.0\lib
d. Binaries: C:\OpenCV2.0\bin

Also fix the cxoperations.hpp file in accordance with the last paragraph on the install guide.

DevCPP = MinGW.

Open cxoperations.hpp (found in \include\opencv)
Find this section (lines 67-68 in 2.0):
#if __GNUC__ >= 4

And update it to reference a new definition, __MINGW32__ (defined by the MinGW compiler, see
#if __GNUC__ >= 4 || __MINGW32__