Save skeleton length in a text file
2 ビュー (過去 30 日間)
古いコメントを表示
I have used the following code (published in this form) to extract skeleton length into figure
It = bwmorph(I,'thin','inf');
B = bwmorph(It,'branchpoints');
[i,j] = find(bwmorph(It,'endpoints'));
D = bwdistgeodesic(It,find(B),'quasi');
imshow(I);
for n = 1:numel(i) text(j(n),i(n),[num2str(D(i(n),j(n)))],'color','g');
end
It's work very well But how can perform statistical analysis on the results (to have mean/max length Etc.) ? Thanks a lot Moran
1 件のコメント
Image Analyst
2016 年 2 月 5 日
編集済み: Image Analyst
2016 年 2 月 5 日
There are functions like mean() and max() you know.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!