how can I smooth a bw image?

2 vues (au cours des 30 derniers jours)
adrian firmansyah
adrian firmansyah le 26 Mai 2016
Réponse apportée : Nut le 26 Mai 2016
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

Réponses (1)

Nut
Nut le 26 Mai 2016
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