image thumbnail
from Mosaic random-images by Yasser Arafat
This program creates random mosaic / tile image

Demo_DynamicTiling.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Developed by                                                              	%
%             Syed Yasser Arafat                                                %
%             Riphah International University, Islamabad,Pakistan               %
%             Dated: 16 Nov 2008                                                %
%             Topic: ImageTiling/ImageMosaic                                    %
%             Copyrights: Only allowed for educational purposes                 %
%                                                                               %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% increase number of images in images-Folder for more randomness

% Demo Program for Dynamic Image Tiling
close all
clear all
clc


prompt = {'Enter Number of Images in Rows:','Enter Number of Images in Cols:','Enter Image-Rows','Enter Image-Cols'};
dlg_title = 'Input for Image Tiling';
num_lines = 1;
def = {'4','4','800','800'};

answer = inputdlg(prompt,dlg_title,num_lines,def);

[RyImg ImagesStructureTiles]=YDynamicTiling(str2num(answer{1}),str2num(answer{2}),str2num(answer{3}),str2num(answer{4}),0);

figure,imshow(RyImg),title('Returned.....Image....Tiled....');


Contact us at files@mathworks.com