/ImageMosaic

Reconstructing an image by concatenating tiny images or patches.

Primary LanguagePython

ImageMosaic

Reconstructing an image by concatenating tiny images or patches. I used images of CIFAR-100 as image patches but you can change the ImageTransform function to read images from other sources like your own images.

Example:

Usage:

converter = Image2Mosaic("path to cifar-100 images file", super_pixel_size=(3,3))
result = converter.Convert("images/girl.jpg", size=(729,729))

**Note that size=(h,w), h and w must be divisible by super_pixel_size=(dh,dw). In this example I used size=(729,729) which 729 is divisible by 3.