Save Image boundaries 'bwboundaries' as an image file

Hello
I wanted to ask after saving each one of the created boundaries in a variable how can I save them as an image array ?
Following this tutorial I can plot them
But there is not any hint how can I store them in an array.
Thank in advance

 Accepted Answer

Use bwperim() to get an image of the boundaries. Then save that with imwrite(). If you really want to use bwboundaries, you have to create an image (full size black image) then go down the list you got from bwboundaries, setting each coordinate to white.

More Answers (0)

Categories

Find more on Images 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!