Close Contours of Image Segments
4 views (last 30 days)
Show older comments
Hello
Working on a segmentation project a have fell upon a serious problem. Sometimes when my segmentation algorithm runs do not produces close contour boundaries, as it considers that the edge of the image is already a boundary but does not creates a boundary there. Is there a way to introduce this information to the segmented image ?
My problem is more complicated as I need to process one by one all the image segments so I only need the part of the boundary that creates a close contour with the segment each time.
Every boundary is exported using bwboundaries() and saved in a binary image (here occurs the problem)
Please if you have any idea how to overcome this problem let me know.
Thank you
0 Comments
Answers (1)
Image Analyst
on 28 May 2012
I've never heard of that, but you can try padarray() so that your object edges that are on the edges of the image are no longer on the edges of the image.
3 Comments
Image Analyst
on 28 May 2012
Let's back up. What do you really want to do? Can you post your grayscale image, and post your binary image? Then tell me what you want to find. Because I don't see any reason at all to find boundaries of things that are already 1 pixel wide lines.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!