how can I smooth a bw image?

2 次查看(过去 30 天)
adrian firmansyah
adrian firmansyah 2016-5-26
回答: Nut 2016-5-26
hello all, i have a final image as an output, as a result of processing image edges got irregular and I want to make it smooth on the edge. how can it be possible for me to smooth/refine just the edges not the complete image? waiting for replies

回答(1 个)

Nut
Nut 2016-5-26
Hi,
I don't know an exact way, so I just propose two ideas:
1) use "imdilate" with a high value for the parameter, this may smooth the edges but also enlarge the objects. Then, to get back the starting dimensions, use "imerode".
2) try to use 'ConvexImage' property of "regionprops" function:
I hope this could help you.

Community Treasure Hunt

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

Start Hunting!

Translated by