How to smooth an edge. I need you help very urgent

조회 수: 2 (최근 30일)
Mohamed Amine
Mohamed Amine 2012년 6월 7일
i have some edge not necessary in the principal edge, how to eliminate without modifing the principal edge. You see the outward-pointing boundary i like to delete some boundary and have a continious edge. URL of image is https://www.dropbox.com/gallery/81412928/1/Sample%20Album?h=8d9ba2
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 6월 7일
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency
Walter Roberson
Walter Roberson 2012년 6월 7일
Duplicate is at http://www.mathworks.com/matlabcentral/answers/40233-how-to-smooth-an-edge-i-have-some-edge-not-necessary-in-the-principal-edge-how-to-eliminate-withou

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

채택된 답변

Anton Semechko
Anton Semechko 2012년 6월 7일
If you have IPT see the documentation for 'bwmorph' function. Amongst other things it allows you to remove spurious details of the skeleton/contour (see 'spur' option).

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 6월 7일
You say that this must be done "without modifying the principal edge". That implies that you do not want to smooth the principal edge at all, and that you want to preserve the little jags that it has such as
____/\____
This implies that the only thing you want to remove are the little "feathers" such as
____|_____
The "feathers" in your image are not long and there are not very many of them. Why bother to remove them, and how could removing them possibly be "urgent" ??

Community Treasure Hunt

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

Start Hunting!

Translated by