how to get a continuos boundary, incase the extracted boundary out of an algorithm has little break in some locations.

4 views (last 30 days)
I have an image output from an active contour algorithm. The resultant matrix has 255 at the boundary locations and zero in the remaining place. I would like to generate a continuous boundary of it. Is chain code helpful in this?

Answers (1)

Image Analyst
Image Analyst on 10 Jan 2015
Maybe, if that's what you want. I normally use bwboundaries() to get the (x,y) coordinates of the boundaries rather than chain code.
If there are multiple contours in activecontour output, then you might make fewer iterations, or adjust your starting binary image. See my activecontour demo, attached.

Tags

Community Treasure Hunt

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

Start Hunting!