University of Helsinki Department of Computer Science
 

Department of Computer Science

Department information

 

Basic bitmap handling and image capturing

Below is some useful functions for basic image capturing and bitmap handling, which I've developed during my own testings. I've some other useful stuff, which I will add here.
No comments on source, but I'll put some example programs here someday. Ask me (Teemu.Kurppa@cs.Helsinki.fi) , if you need help.


All Sources

bitmap_24bitRGB.h

create, setPixel, getPixel, readFromFile and writeToFile functions for 24 bit RGB bitmaps. Bitmaps are written to files as ppm-bitmaps. (man ppm for further info).

bitmap_8bit.h

create, setPixel, getPixel, readFromFile and writeToFile functions for 8 bit grayscale bitmaps. Bitmaps are written to files as pgm-bitmaps. (man pgm for further info).

bitmap_2bit.h

create, setPixel, getPixel, readFromFile and writeToFile functions for 8 bit grayscale bitmaps. Bitmaps are written to files as pbm-bitmaps. (man pbm for further info).

grapper.h

Functions for image capturing. Also function for copying captured image to 24 bit RGB bitmap.

filter.h

Functions for spatial filtering with filters like
Spatial lowpass
111
111
111
Prewitt edge detectors
-1-1-1
000
111
-101
-101
-101
and median filter.

threshold.h

Thresholding intensity images to 2 bit images.

color_components.h

Teemu Kurppa