Skip to content

Starting off Image Processing with OpenCV

September 5, 2010

Image processing is an important field where a lot of signal processing concepts learned is applied. Image processing maybe done with any programming language. I think Matlab and C are the most commonly used and the latter being more popular due to the user friendly interface. But, C gives you more power and flexibility to solve image processing problems. OpenCV is a image – video processing library developed by Intel and released under BSD license. It can serve as a great tool for image manipulation and transformations in C programming.

I am using GCC to compile my C programs in my Ubuntu machine. You may use any other C compilers and please note to include the CV libraries in your include path.

gcc program.c -o program -I /usr/include/opencv/ -L /usr/local/lib/ -lcv -lhighgui -lcvaux -lm

The above command is used for compiling the programs. Please see that you have installed libcv-dev, libcvaux and libhighgui-dev packages installed from the repository in case of linux distributions. Other users please check

To run the program after compilation,

./program argumentsifany

In the following posts I would include sample programs and explanations for some of the library functions in OpenCV.


From → OpenCV

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: