MATLAB Answers


can anybody tell me how to do cropping of image automatically and save it?

Asked by karan dev on 5 Feb 2013

hey friends,I want to crop my big grey-scale image into sub image with fix number like say 256 * 256 and save it.And i want to do it sequentially so that image number can be attached after sub image. like if image name is "get" then sub image starts like get1,get2,get3...i tried imcrop but cant use loop index variable inside needed thanks in advance


Log in to comment.

1 Answer

Answer by Sean de Wolski
on 5 Feb 2013

FAQ And then let this play with imcrop() or basic indexing,.

  1 Comment

i think you misunderstand my is things i wanted to do (1)I have big grey scale image,lets say 5000 * 5000 (don't get heart attack just example-just kidding), (2)now i wanted to crop it in small part 256 * 256 (3)And i wanted to save it as sequential name as if big image name is "get" then subimages name will be get1,get2,get3.....

Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Win prizes and improve your MATLAB skills

Play today