How to smooth the rough edge on 2D image?
古いコメントを表示
I tried erode followed by a dilate.
The effect is not good as I want it to be.
I want the edge without any curve. It better can remove the curve and use straight line to represent those curve
I remember that there are some filter for smoothing the edge,right?
2 件のコメント
Michael Haderlein
2014 年 8 月 22 日
Did you check imfilter and fspecial?
tabw
2014 年 8 月 25 日
回答 (1 件)
Image Analyst
2014 年 8 月 22 日
0 投票
You can try activecontour(). You can set parameters to control how smooth the boundary is. See attached demo.

4 件のコメント
tabw
2014 年 8 月 25 日
Image Analyst
2014 年 8 月 25 日
It's the same function. You forgot to give the error message. Please copy and paste ALL THE RED TEXT. Don't snip or paraphrase like you did. Did my demo run? That should run with no errors whatsoever.
tabw
2014 年 8 月 26 日
カテゴリ
ヘルプ センター および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!