One of my first image processing based project done in 2007. It finds
cars on a Google Maps view, based on their color.
When I started this project, I had no experience in image processing,
so I tried what came to my mind. Looking backward, the sources are a
real mess but I acquired my first image processing skills with it.
Here are the basic steps of the program:
- Delete the unnecessary colors from the image
- Classify the image in 10 colors with the K-means algorithm
- Delete huge objects that can’t obviously be cars
- Fill tiny holes
- Classify again
- Remove odd shapes
- Fill tiny holes again
- Restore original colors
- Delete pixels with low saturation
- Classify again
- Remove little objects
- Remove odd shapes
Later, I decided to bind it with a Cocoa GUI.
Technologies
- The CImg Library: a
simple but powerful image processing library
- Cocoa: the framework
behind every Mac application