Google Blogoscoped

Monday, December 12, 2005


I’ve played around with a new algorithm to create sketches based on photos. First, I’ve created a few dozen single black lines using my Wacom tablet and saved each image as 60x60 pixels, two-color transparent GIF. Second (using local PHP5 via the WAMP all-in-one setup – running this live is too CPU-heavy), I’m randomly checking parts of the picture for the “best fit” black stroke of all of the black strokes, to then apply that image onto the blank canvas (this is repeated for about 5,000 times, which takes several several minutes). This resembles the well-known photo mosaic algorithm. Here are some of the results.

Albert Einstein shows his tongue (see the enlarged version, or the more abstract one which uses a different threshold).


A piece of Da Vinci’s Mona Lisa.


The Google logo.


The movie poster for Casablanca, showing Humphrey Bogart and Ingrid Bergman (see enlarged image).


Blog  |  Forum     more >> Archive | Feed | Google's blogs | About


This site unofficially covers Google™ and more with some rights reserved. Join our forum!