how to crop many parts from one image

hello i'd like to crop two existed blob from only one image...but every time i try, only one blob will be cropped (with imrop instruction) not the both ... any one help me please

Answers (1)

imcrop() can only crop one section at a time. imcrop() is only for rectangular cropping. This is necessary because in MATLAB, all matrices must be rectangular, and if you were able to crop multiple blobs then that would require that the result be an output matrix that was two disconnected rectangular sections.

1 Comment

so please how can i crop multiple rectangular form from one image?

Sign in to comment.

Categories

Asked:

on 1 Feb 2016

Commented:

on 1 Feb 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!