how to get a continuos boundary, incase the extracted boundary out of an algorithm has little break in some locations.
Show older comments
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
on 10 Jan 2015
0 votes
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.
Categories
Find more on Image Segmentation and Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!