IMG Mosaic Generator

A simple open source photomosaic creator (with support for multithreading) written in Java.

For more technical information, visit Google code, where the code is hosted.

To use, download IMGMosaicGenerator.jar, and run something like:

java -jar IMGMosaicGenerator.jar bigpicture.jpg 100 75 mytilesdirectory

This will look for image files in mytilesdirectory. Every image file is then resized to resolution 100×75 and matched against every position of bigpicture.jpg:

IMG Mosaic Generator

The preview window is updated every time a tile is a “best match so far”. Window can be resized:

Resized window

Two versions are created (one normal and one “optimally dithered”):

Version 1, none-dithered photomosaic

The second version can be obtained when aborting the process by clicking in the window and invoking the following dialog box:

Version 2, dithered photomosaic

Output is in HTML. To save as image, Firefox add-on, Abduction! can be used.

Tags: , , , , , ,

2 Responses to “IMG Mosaic Generator”

  1. HI – I ran the code to see if it would mosaic 4 5616×3744 pixel aerial images – no joy. See samples on web site – Suggestions ?

    Thanks

    bob

  2. Richard says:

    I’m guessing the images are too large to be read by the application (OutOfMemoryError). You could simply resize the images first, the quality of the matching will be just as good. Since the output is in HTML you can then replace the tiles with the original images afterwards.

Leave a Reply