Quickly generates a mosaic image from a folder with plenty of images
This simple Matlab code quickly generates mosaic images using a folder containing a good number of images. The current dataset comprises 620 robot portrait images, made via stable-diffusion-v1-4 pretrained model. Images are stored in the 'Dataset' folder which is zipped.
The dataset comprises 620 robot portrait images, meticulously crafted using the stable-diffusion-v1-4 pretrained model. Images are stored in the 'Dataset' folder.
-
Ensure the dataset is available in the 'Dataset' folder. If not, put at least 100 images there.
-
Adjust parameters in the code, such as mosaic size (`S`), number of images per side (`N`), target image file (`TargetImage`), and dataset regeneration flag (`remake_dataset`).
-
Run the MATLAB script to generate mosaic images.
% Set parameters for mosaic creation
S = 60; % Size of the mosaics
N = 60; % Number of images per side
TargetImage = 'a3.jpg';
remake_dataset = 0; % Option to remake the dataset
git clone https://github.com/ArashRabbani/Mosaic_Maker.git
cd mosaic_maker