Installation+openCV+2.3.1

The latest version of OpenCV 2.3.1 supports more and faster functions. Installation is straight forward:


 * __Step 1.__** Get the latest version of OpenCV from [|the following link].


 * __Step 2.__** Extract the source code in a working directory, .

code cd /OpenCV-2.3.1 mkdir release cd release cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON .. make sudo make install code code sudo gedit /etc/ld.so.conf.d/opencv.conf ==> Insert the following line: /usr/local/lib sudo ldconfig code code cd /OpenCV-2.3.1/release/bin ==> As you can see, several functions_test are available ./opencv_test_core
 * __Step 3.__** Goto the working directory, and compile the code.
 * __Step 4.__** Add the path to the dynamic libraries, and reload the libraries:
 * __Step 5.__** Installation is completed. OpenCV can be tested, and examples can be compiled using:

cd /OpenCV-2.3.1/samples/c sh build_all.sh ==> Example running delaunay. ./delaunay code code grep -r "command_name*" /usr/local code
 * __Important Note____.__** Since OpenCV version 2.2, the OpenCV libraries have been reorganized. See [|this link] for more information. Therefore the Makefile is different compared to OpenCV versions prior to 2.2. The different functions are contained in smaller modules. Thus it can happen that a particular function cannot be found using the Makefile below. If this is the case, run the following command to find the library in which the function is contained, and add this library to your Makefile.

An example of a Makefile is given below.

objects = bvs.o functions.o opencvOptions = -I"/usr/local/include/" -L"/usr/local/lib" -lopencv_core -lopencv_highgui programName = bvs

$(programName): $(objects) g++ -o $@ $(objects) $(opencvOptions)

%.o: %.cpp g++ -c $< $(opencvOptions)

clean: rm -f *.o $(programName)