Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Corre Gido
Corre Gido
ejey2 = size(imagen_final,1);
ejex2 = size(imagen_final,2)-1;
for y=1:ejey2
for x=1:ejex2
%disp (g);
if mod(x,2) == 0 && mod(y,2) != 0
%disp ("lolddd")
pixel=imagen_final(y,x-1);
pixel2 = imagen_final(y,x+1);
%pixel,pixel2;
imagen_final( y, x ) = (pixel+pixel2)/2;
end
end
end
for x=1:ejex2+1
for y=1:ejey2
%disp (g);
if mod(y,2) == 0
%disp ("lolddd")
pixel=imagen_final(y-1,x);
pixel2 = imagen_final(y+1,x);
%pixel,pixel2;
imagen_final( y, x ) = (pixel+pixel2)/2;
end
end
end
imagen;
imagen_final;
p = imagen_final;
end
final = interlolx(imagen,2)
figure()
subplot(1,2,1)
imshow(imagen,[])
title('original ')
subplot(1,2,2)
imshow(final,[])
title('interpolada')