Friday, September 3, 2010

ImageProcessing and OpenCV

When we think of Image processing; OpenCv the name we Trust which is 'Software that sees'.
This blog will provide a working guide to OpenCV and also provides a general background to the field of computer vision sufficient to use OpenCV effectively. This Software is an Open Source Computer Vision Library.

Here is a general overview below (Figure 1) what OpenCv Do:

Figure 1: OpenCv OverView (Courtesy:

Who Owns OpenCV?
Although Intel started OpenCV, the library is and always was intended to promote
commercial and research use. It is therefore open and free, and the code itself may be
used or embedded (in whole or in part) in other applications, whether commercial or
research. It does not force your application code to be open or free. It does not require
that you return improvements back to the library—but we hope that you will.

First Program—Display a Picture

Example 1. A simple OpenCV program that loads an image from disk and displays it on the screen
#include “highgui.h”
int main( int argc, char** argv ) {
IplImage* img = cvLoadImage( argv[1] );
cvNamedWindow( “Example1”, CV_WINDOW_AUTOSIZE );
cvShowImage( “Example1”, img );
cvReleaseImage( &img );
cvDestroyWindow( “Example1” );

Hope most of us who r reading this site already knows these basic things with OpenCV. However that was an Intro. Now we discuss about some interesting thing that can manage with Opencv; i.e. Image processing, object detection and its application to a robot vision.