How to crop left eye (255*255) in this image?
Afficher commentaires plus anciens
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)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Neighborhood and Block Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!