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

2 ビュー (過去 30 日間)
manoj m
manoj m 2013 年 3 月 12 日
回答済み: Maziyar 2014 年 11 月 6 日
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.
Walter Roberson
Walter Roberson 2013 年 3 月 12 日
http://www.mathworks.com/help/images/ref/bwareaopen.html might help, possibly, but not until the connecting links were broken.

サインインしてコメントする。


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