Monthly Archives: November 2011

Writing Bitmap Files in Windows

This is a bitmap file writing example. I compiled it with MinGW (gcc). It generates the following image and saves it as a bitmap file called “image.bmp”. Here’s the source code: Advertisements

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Ultra-simple machine vision in C with RobotEyez

I use PGM image files a lot in my Engineering Computing class because the provide a really easy way for novice programmers to get started with image processing in C. This file format stores greyscale images in plain text and … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , | 71 Comments

Simple data plotting from a C console application using SVG

Synopsis: Write a console application that processes some data. Use the technique below to easily generate a graphical plot of your data using only standard C library functions (fopen, fprintf, fclose). View the plot in an ordinary web browser. A … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 3 Comments

Incredibly concise shape sorter

Posted in Uncategorized | Leave a comment

ShapeSorter – a simple PGM processing example

This is a simple PGM image processing example program.

Posted in Uncategorized | Leave a comment

PGM image processing example

This C program is an example of simple image processing using PGM files. PGM files can be viewed using programs such as ImageMagick, GIMP, and IrfanView.

Posted in Uncategorized | Leave a comment

Blobs

This is a little program I’ve just written to generate PGM image files of random blobs like the following ones: Binary download: http://dl.dropbox.com/u/2482633/blobs.exe Source code file: http://dl.dropbox.com/u/2482633/blobs.c

Posted in Uncategorized | Leave a comment