I require to crop out the polygon box (red color) only and eliminate the background from the image .How to crop the objects and store it in different variable?? I need coding... thank u in advance..please help me...

1 次查看(过去 30 天)

回答(1 个)

Image Analyst
Image Analyst 2015-11-4
Did you try imrect() or rbbox()? I think there are examples in the help. Once you know the bounding rows and columns, you can use indexing or the imcrop() function to extract only that box.

Community Treasure Hunt

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

Start Hunting!

Translated by