How to crop left eye (255*255) in this image?
Show older comments
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)
Accepted Answer
More Answers (0)
Categories
Find more on Neighborhood and Block Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!