views:

56

answers:

3

I occasionally see portraits and other images which have been redrawn into an abstract form, where each pixel in the redrawn image is actually another, much smaller picture.

I am looking for a tool (or library) which can perform this type of transformation automatically. Does something like that exist?

A: 

I don't know about any existing tool; but the general algorithm would be to look at each pixel in the source image, and from a pool of pictures select one to represent the picture. You would probably want select the image that has the most content of the pixel color. (So when you encounter a blue pixel, you select an image to represent it, that is mostly blue, and so on).

driis
+1  A: 

You are thinking of a Photomosaic. You can use AndreaMosaic. There is a HowTo here.

Mark Byers
A: 

Maybe this can help. Its php,gd and mysql based. Good luck.

Antonio