Professional Documents
Culture Documents
Image Processing
Image Processing
clear all;
close all;
b=imread('cameraman.tif');
[m,n]=size(b);
k=1; %Counter for Row and
l=1; %Column replication
f=2;% replication factor
for i=1:m %Loop for reading row and
for t=1:f %Row replication
for j=1:n %Loop for reading column and
for t=1:f %Column replication
c(k,l)=b(i,j);
l=l+1;
end
end
l=1;
k=k+1;
end
end
%subplot(1,2,1),
imshow(b), title('original(256,256)')
figure
%subplot(1,2,2),
imshow(c), title('zoomed(512,512)')
xx