Find branches in a skeleton?
이전 댓글 표시
When you make a skeleton from a binary image you can extract branch points. However I m trying to find out which branch points are connected to which. I can find the index of the branch points. So I have a skeleton with labeled branch points and I can physically view the nodes that are connected to one another but I cannot seem to generate these connections in code? eg branch point 3 is connected to branch point 5.
댓글 수: 6
Ronan
2015년 9월 15일
Image Analyst
2015년 9월 15일
Can you give the pixel layout where you'd have two branchpoints that are next to each other (connected to each other). If it was like a T then you'd have only one branchpoint in isolation - not touching any other branchpoint.
Ronan
2015년 9월 15일
편집: Walter Roberson
2015년 9월 15일
karishma singh
2017년 8월 6일
Hi, I tried running this code..it gave me below error - Error using fopen File name must be a vector of type char.
Error in isdicom (line 9) fid = fopen(filename, 'r');
Error in images.internal.getImageFromFile (line 44) if (isdicom(filename))
Error in images.internal.imageDisplayParseInputs (line 74) images.internal.getImageFromFile(common_args.Filename);
Error in imshow (line 222) images.internal.imageDisplayParseInputs({'Parent','Border','Reduce'},preparsed_varargin{:});
Error in Preprocess (line 52) imshow(the_out);
Walter Roberson
2017년 8월 6일
karishma singh: which code was it that you ran? None of the code that is posted in this Question calls Preprocess or defines a variable named the_out ?
karishma singh
2017년 8월 8일
Preprocess.m is just my file name. I ran the code posted by Ronan using my skeleton image.
답변 (1개)
Image Analyst
2015년 9월 15일
0 개 추천
I think you'll need to get an image of just the branch points. Then an image of just the branches with the branchpoints removed. Then pick two branchpoints to test and make an image with just those two. Then put in each branch one at a time and call bwdistgeodesic() to see if they're connected by that branch.
카테고리
도움말 센터 및 File Exchange에서 Morphological Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!