Suggestion of how to deal with artefacts
3 views (last 30 days)
Show older comments
Hello
Please, see attached image. At the top boundary area, there is an artefact that prohibits the active contour to take a rectangular shape. One method I can think of is to crop the image lower so not to have the artifact. But, later I will have to deal with it since the pixels rows deleted will later be added in my calculations.
I would also like to ask whether there is a way for a line-edge segmentation method. Active contours like the one I use, starts from a circle shape and it expands. What about having a method for the segmentation to start as a line and segments the edges, like the bottom red line where I want.
Looking to your proposals.
0 Comments
Answers (1)
Image Analyst
on 22 Jan 2019
I'm assuming the artifacts are the bright regions surrounded by the red line at the top, and the huge white surround is actually NOT part of your image, correct?
Not sure what you're doing with the active contour, but you could find the bright blobs at the top and then just replace them with zero or the mean of the image or something
grayImage(brightBlobMask) = mean(grayImage(~brightBlobMask));
Then try your active contour.
4 Comments
Image Analyst
on 28 Jan 2019
You can't pass in : (colon) for the connectivity (second argumente to bwlabel()).
It has to be either 4 or 8 or you can leave it out (like I did).
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!