【问题标题】:matlab: detecting better branchpoints from skeletonmatlab:从骨架中检测更好的分支点
【发布时间】:2017-07-07 09:04:38
【问题描述】:

我有两个骨架图像,我从中提取了分支点。不幸的是,分支点似乎不正确。有人对如何提取有效分支点(即“y”状形状点)有建议吗?

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');

在下面的第一个示例中,应该只有 一个 分支点:

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');

在下面的第二个示例中,应该只有 no 个分支点:

【问题讨论】:

    标签: matlab image-processing mathematical-morphology


    【解决方案1】:

    试试:

    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);
    

    【讨论】:

      猜你喜欢
      • 2021-01-04
      • 2015-02-02
      • 2016-06-20
      • 1970-01-01
      • 2017-08-19
      • 2013-05-17
      • 2019-04-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多