Info

此问题已关闭。 请重新打开它进行编辑或回答。

sir,I want to measure the length of branches in the vessel segment separately.

1 次查看(过去 30 天)
My skeleton picture is given below
and I have run the following code to find the branchpoints and endpoints of each vessel in above image
W2 = bwmorph(f1,'skel',Inf); figure, imshow(W2); title('centerline'); L = bwmorph(W2,'branchpoints'); [row column] = find(L); branchPts = [row column]; endImg=bwmorph(W2,'endpoints'); [row column]=find(endImg); endPts = [row column]; figure, imshow(W2); title('branching points'); hold on; plot(branchPts(:,2),branchPts(:,1),'r+'); plot(endPts(:,2),endPts(:,1),'g+');
%the following code are used to count the number of branching points in the given image se=strel('disk',5,8); dl=imdilate(L,se); figure; imshow(dl); %dilation of branches ccbranches=bwconncomp(L,8); nob=ccbranches.NumObjects; vwb=f1; vwb(dl)=0; cc=bwconncomp(vwb); Noriginal=ccbranches.NumObjects;
after run the above code,I have to get the following output
now I want to measure the length of each vessel segment separately.I have to use the bwdistgeodesic method in matlab,but my matlab version is 7.10.0 so it can't support this method so anybody can give some suggestion to measure the vessel length.even if you give any pseudo code,it will be very helpful to me.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by