find diameter based on the centreline and edge
4 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I need to find the diameter of the artery model by knowing the centreline and the edges of the artery as:
The black area shows the artery and the white line shows its centreline. I need to calculate the diameter of model at different locations.
Any helps on how to approach it is appreciated.
Thanks
Navid
0 件のコメント
採用された回答
Image Analyst
2023 年 10 月 23 日
10 件のコメント
Image Analyst
2024 年 2 月 28 日
I don't know why the skeleton should give a "solid" patch. Be aware that bwboundaries is meant to give the perimeter of the blob and I'm not sure what the coordinates would be in the degenerate case of a single pixel wide line - not sure if the coordinates are doubled as it traces around the line. You have to make sure that the boundary starts at the ENDPOINT of the skeleton. bwboundaries starts at the left most point of the blob which quite likely is not the same location at the endpoint. You might have to use bwtraceboundary where you can tell it where to start tracing at and use bwmorph to find the endpoints of the skeleton and start there.
But again, you're only giving small snippets of code. I have neither the Crystal Ball Toolbox nor the Mind Reading Toolbox.
If you have any more questions, then attach your image and code to process it in with the paperclip icon after you read this:
Or:
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!