Interpolation Nearest Neighbor
Mostrar comentarios más antiguos
Please, I need help to understand why appears the lines on my interpolation.
the code is:
clear imagem2;
clc;
imagem1=imread('olho.tif');
fator=1.5;
[lin,col,d]=size(imagem1);
for i=1:lin
for j=1:col
%mapeando e interpolando os pixels da imagem original para uma nova matriz.
imagem2(round(1+(i-1)*fator),round(1+(j-1)*fator),:)=imagem1(i,j,:);
end
end
figure(1)
imshow(imagem1)
title('Imagem Original')
figure(2)
imshow(imagem2)
title('Imagem Interpolada')
imwrite(imagem2,'imagem2.jpg');
Thanks for your help.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Neighborhood and Block Processing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!