You're here: Home / OpenCV /

OpenCV Examples for Operation on Images

OpenCV is a collection of C functions and a few C++ classes that implement many popular Image Processing and Computer Vision algorithm. The best part is, it is free for both commercial and non-commercial use. Go to http://www.sourceforge.net/projects/opencvlibrary and get the latest version.

If this is your first experience with OpenCV, I suggest you to play with images first. It is the simplest thing to do, but you'll learn alot about OpenCV basic concepts and how to perform various tasks with OpenCV.

I've write some OpenCV examples. Get it by clicking the download link above. The package contains these files:

  • loadimg.c: Load an image and display
  • imgprop.c: Get the properties of an image
  • copyimg.c: Copy an image and save to file
  • c2g.c: Load a color image and convert it to grayscale
  • imgdata.c: Access image data and perform image manipulation

I recommend you to use gcc--a free C compiler from GNU--to compile the samples. If you use Windows for your operating system, obtain the gcc port for Windows at http://www.mingw.org. I've tested all of the samples and it runs very well on my computer. If you encounter problems with compiling or running the samples, feel free to contact me [at] nashruddin.com.

You might want to read Introduction to programming with OpenCV by Gady Agam. This excellent tutorial will help you to get started with OpenCV quickly. Highly recommended.

Keywords: opencv examples, image processing, image operation, opencv, samples

Share:  del.icio.us logo Save to del.icio.us  digg logo Digg this!

comment.gifComments

Thanks a lots. It's very helpful.

Thanks. glad you like it.

comment.gifAdd your comment

(required, will not be published) (optional)