how to crop many parts from one image

4 次查看(过去 30 天)
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

回答(1 个)

Walter Roberson
Walter Roberson 2016-2-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.

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by