Dear Luca and all, I was looking for a way in python to calculate the centreline of my 3D surfaces and could not find anything wrapped in python (only c++ algorithms), therefore I am a new vmtk user.
My datasets consist of several 3D ultrasound volumes in metafile: each with one .mha (example attached) and one .raw. Using vtk I first split each volume in its slices: in the example .mha with DimSize = 272 256 208, I split my volume in 208 frames. Thereafter, in vtk again, I just read these frames (whole volume) with the vtk.vtkImageReader2(). The function that does this is attached and working perfectly. Question: how can read my volume (.mha and .raw) files to vmtk? I have not been able to do it so far.. With vtk, I obtain a surface which I get with vtk.vtkSurfaceReconstructionFilter() and then vtk.vtkContourFilter(). Question: can vmtk be run in the same python file of (along with) vtk? If yes, how can I use the vmtkcenterlines and probably the vmtksurfacereader to calculate the centre line of my models? my models are simple, they are like big elipses (always closed in a convex set), so calculating the centreline should be simple. IF I cannot run vmtk along with vtk, what do you advise me to do, so I can extract the centreline with vmtk? Your help would be really appreciated! Many thanks. Best regards, Joao Domingos
us3D.py
Description: Binary data
26fr1.mha
Description: Binary data
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ vmtk-users mailing list vmtk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vmtk-users