필터 지우기
필터 지우기

How to smooth the rough edge on 2D image?

조회 수: 2 (최근 30일)
tabw
tabw 2014년 8월 22일
편집: tabw 2014년 8월 26일
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
Michael Haderlein 2014년 8월 22일
Did you check imfilter and fspecial?
tabw
tabw 2014년 8월 25일
No. thanks for your advice

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2014년 8월 22일
You can try activecontour(). You can set parameters to control how smooth the boundary is. See attached demo.
  댓글 수: 4
Image Analyst
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
tabw 2014년 8월 26일
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
'char'.
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

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by