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:

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 , , , , , , , , , , | 85 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

CommandCam – a DirectShow command line cam image grabber for Windows

EDIT (24-11-2011) : Since publishing this post, I have found myself making frequent updates to the CommandCam program, so I’ve created a dedicated page for it instead, with up-to-date information and download links. Get CommandCam here (binary download and source … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | 26 Comments

Protected: ProjecTable Analytical Solution (three sensors in a line)

There is no excerpt because this is a protected post.

Posted in Uncategorized | Tagged

Making an Ubuntu startup / installation disk on a hard drive partition

To create an Ubuntu startup / installation disk on a hard drive partition (when running Ubuntu – I’m running version 11.04), use the following command. usb-creator-gtk –allow-system-internal It just runs Ubuntu’s normal USB startup disk creation tool, but makes it … Continue reading

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