PAI

Prelucrarea si Analiza Imaginilor

Introducere in OpenCV:

http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html

Configurarea DEV-C++ pentru lucrul cu OpenCV 2.0

(sursa: http://programing-tutorial.blogspot.com/2009/10/linking-opencv-library-in-devc.html)

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.

http://opencv.willowgarage.com/wiki/InstallGuide

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

And update it to reference a new definition, __MINGW32__ (defined by the MinGW compiler, see http://predef.sourceforge.net/precomp.html#sec31):
#else
#include
#if __GNUC__ >= 4 || __MINGW32__