% extract part of the image and tile it

close all
clear all

P= imread('duck.jpg');
S= P(40:170,130:300,:);  % just the head

% 4 in a row
R= S;
for k= 1:3
    R= [R S];
end

% make 3 rows
T= R;
for i= 1:2
    T= [T; R];
end

imshow(T)
