2017-07-07 14 views
2

私は分岐点を抽出した2つのスケルトン画像を持っています。残念ながら、分岐点は正しいとは思われません。有効な分岐点(つまり、「y」のような形状点)を抽出する方法についての提案はありますか?matlab:スケルトンからより良い分岐点を検出する

:のみ ない分岐点があってはならない以下の第2の例では

Region 1 original imageRegion 1 overlay

reg2 = imread('region2.tif'); 
[i,j] = ind2sub(size(reg2), find(bwmorph(reg2,'branchpoint') == 1)); 
h=figure; imshow(reg2); hold on; plot(j,i,'rx');print(h,'reg2overlay','-dtiff'); 

reg1 = imread('region1.tif'); 
[i,j] = ind2sub(size(reg1), find(bwmorph(reg1,'branchpoint') == 1)); 
h=figure; imshow(reg1); hold on; plot(j,i,'rx');print(h,'reg1overlay','-dtiff'); 

以下の最初の例でのみ分岐点がなければなりません

Region 2 original image Region 2 overlay

答えて

0

試してみてください。

branchskel = bwmorph(BW,'skel',Inf); %BW is your binarized image 
branchskel = bwmorph(branchskel,'thin'); %this should remove those pixel piles that are giving you problems 
B = bwmorph(branchskel, 'branchpoints'); 
[yb,xb] = find(B); 
関連する問題