find diameter based on the centreline and edge
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
NaviD
am 23 Okt. 2023
Kommentiert: Image Analyst
am 28 Feb. 2024
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 Kommentare
Akzeptierte Antwort
Image Analyst
am 23 Okt. 2023
10 Kommentare
Image Analyst
am 28 Feb. 2024
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:
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!