Finding Centerline from Mesh

189 views
Skip to first unread message

samme...@gmail.com

unread,
May 9, 2016, 11:11:00 PM5/9/16
to vmtk-users
Hello every one

I did segmentation of coronary arteries in Matlab then i converted this segmentation into its equivalent mesh form by using isosurface.
Now my task is to find out the centerline of this mesh data so that i can have two separate arrays holding the centerline points (nodes) and the set of indices(which defines the adjacent points for each node).
Can i do this task with the help of vmtk ? If yes then how can i bring my mesh data, which is in matlab, to vmtk ?

Attila Pataki

unread,
May 11, 2016, 3:03:50 AM5/11/16
to vmtk-users
Hey,

you can use vmtk to generate the centerlines. you will have to export your data from matlab in a format known by vmtk( check the following link to view the supported formats: http://www.vmtk.org/documentation/getting-started.html)

don't really understand if it is a mesh like the vtu format or if it is the surface you generated from the segmentation result images. 
If it is a mesh you should use the following line to convert it to a surface:
vmtkmeshtosurface -ifile BROWSER -ofile BROWSER

if it is a surface you can skip the previous line and use the following:
vmtkcenterlines -ifile BROWSER -ofile BROWSER

when and if you save the output as dat file you can see the following lines( the second line is an example) in the output file
X Y Z MaximumInscribedSphereRadius EdgeArray0 EdgeArray1 EdgePCoordArray
147.250259399 305.055480957 -136.351806641 0.741171632401 81476.0 81476.0 0.0

and if you save the centerline as a vtp you can look at the arrays.. 

For more options use vmtkcenterlines --help to find out what you can generate to help you acquire the necessary information.

Regards,
Attila Pataki


Reply all
Reply to author
Forward
0 new messages