How to smooth the rough edge on 2D image?

7 views (last 30 days)
tabw on 22 Aug 2014
Edited: tabw on 26 Aug 2014
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?

Answers (1)

Image Analyst
Image Analyst on 22 Aug 2014
You can try activecontour(). You can set parameters to control how smooth the boundary is. See attached demo.
tabw on 26 Aug 2014
I guess Yes. If I directly run your run, it popped up a interface-liked stuff. it showed the sample image and its histogram. and came up
??? Undefined function or method 'bwconvhull' for input arguments of type
Error in ==> Untitled at 59
mask = bwconvhull(mask, 'Union');
So, i tried to follow the example inside the link. But it said too many input arguments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!