Taking patches from RGB image from its connected components

I have an RGB image, I have used roipoly to make polygons and create a binary matrix. After that i used bwconncomp to find connected components.
Is it possible to get partial image from RGB based on these connected components. E.G ihave 30 objects in my bwconncomp result. How can I get 30 different image patches taken from my original partial image.

Antworten (0)

Gefragt:

am 16 Okt. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by