how to crop many parts from one image

1 view (last 30 days)
bay rem
bay rem on 1 Feb 2016
Commented: bay rem on 1 Feb 2016
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)

Walter Roberson
Walter Roberson on 1 Feb 2016
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
bay rem
bay rem on 1 Feb 2016
so please how can i crop multiple rectangular form from one image?

Sign in to comment.

Categories

Find more on Image Processing Toolbox 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!