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