Image Mosaic

October 11th 2015

Sometime ago I saw a poster somewhere that was a picture of something, it may have been of the Mona Lisa, but I am not actually sure. Anyways, when you looked at it closely you could see it was a mosaic of a bunch of smaller photographs that made up the one big image. This is what motivated this project. The matlab code for the results shown below can be found here.

To start off, I tried to making a mosaic image using the original image. An example is shown below. As you zoom in you can see that the big image is actually made up by a bunch of smaller lower-resolution images of itself.

 

Screenshot 2015-10-11 15.26.20

 

The process of making the image is fairly straight forward. First you lowpass filter the original image and then decimate it to make a smaller low-resolution version of the original image. I call this smaller low-resolution image a “tile”. This process is shown in the three images below.Screenshot 2015-10-11 15.41.19

 

Ignorance may express the negligence of emotions for making love cheap viagra then you should look at these pills which are available in market or on online stores even. Once you are viagra 50mg price diagnosed with Erectile Dysfunction, you should avoid drinking grapefruit juice. Liver viagra price has many functions to perform one of the vital function is to get away with the toxic substances. Nowadays, Ovidac Hcg 5000IU is widely used to treat infertility shipping free viagra in both men and women. After you have created the tile, which becomes the basis for the image mosaic, you begin replacing sections of the original image with the tile. As you replace the sections of the original image with the tile you must weight the values of the tile by the values of the pixels that you are replacing in the original image. And that’s basically it.  In addition to making a mosaic image out of one image you can use another image to make the mosaic tile.

The image below show the original image and the image used to make the mosaic tile.

Screenshot 2015-10-11 14.39.12

 

 

The result of the mosaic of image 1 with image 2 is shown below.

Screenshot 2015-10-11 16.04.34

The code used to generate these images, as well the image files are found here. Over the next week or so I plan to update the code so that you can create a mosaic image from a collection of images.