How to crop left eye (255*255) in this image?
Mostrar comentarios más antiguos
i want to crop only one eye in this image,here is code clear all; a=imread(‘your image.png’);
% Parameter for cropping
x=input(‘Enter value of Row:’)
y=input(‘Enter value of Column:’) c=size(a) for i = x:1:c(1)-x for j = y:1:c(2)-y b(i+1-x,j+1-y)=a(i,j); end end figure() imshow(a) figure() imshow(b) size(b)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Neighborhood and Block Processing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!