i want matlab code for pruning the skeletonized image to remove the unwanted branches.

조회 수: 8 (최근 30일)
Only the main branch should result as a result of pruning.

답변 (2개)

Walter Roberson
Walter Roberson 2013년 3월 12일
See bwmorph with the 'spur' option.
  댓글 수: 2
manoj m
manoj m 2013년 3월 12일
i applied spur operation to this thinned image http://imageshack.us/photo/my-images/194/38936107.png/ and with no. of operation(n) is set to 7, i obtained this image http://imageshack.us/photo/my-images/109/63174203.png/. It can be seen that the main branch also gets removed to some extend.At n=7 only the side branch completely diasappears. as n is increased further main branch starts deteriorating. Is there any other method by which i can remove only the side branch.

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


Maziyar
Maziyar 2014년 11월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by