This is just a collection of software and other useful things for people in the lab.

Open CV example code

Note: since openv was built upon the intel IP library (they are moving to be independent of it) - it uses the ipl header format for images. The documentation of OpenCV is abysmal - however, by looking at the source code and by reading the IP docs and by looking at the examples, you should be able to work your way through it.

One of the common problems I have found is that most of the routines only accept 8bit single channel input data - and often the manual doesn't say anything about what is or isn't expected for the image parameters.

Drawing

You can draw lines/circles and other things (text) on your images.

Of course, one can use another library: e.g., Opengl, or the MSwindows drawing functions - in some ways, that may be better as the OpenCV library is pretty restricted. However, the advantage is that your code only depends upon OpenCV not on any other lib if you stick with OpenCV only.

There are a numer of drawing routined in cvdrawing.cpp - they are pretty self explanatory except - the images haft to be 8bit (either single channel or triple - i.e., rgb). The other thing you need to know is that the drawing colour is specified with an int and the colour is in the lower 3 bytes (r,g,b - blue in lowest byte) for colour images and greyscale (single byte in lowest byte) for greyscale images. Circle drawing greyscale image

Circle drawing colour image

VC makefile

gcc makefile