Hi Francesco, you're right as to the fact that the centerlines code is made for 3D, not 2D.
A (hacky) workaround would be to replicate the 2D image in order to generate a volume and extract a 3D surface from it. Probably even resampling the 2D image using vmtkimagereslice would work. Is this a possibility? Luca On Apr 12, 2012, at 3:22 PM, Francesco Iannaccone wrote: > Hi all > > here is my problem. I have one 2D picture of a vessel. After some > binarization in 3d slicer to extract the label map i want to compute > the centerlines on it. > I made some transformation to get a vtkpolkydata of triangles of the > segmented 2D vessel image but it does not seem to be a good input for > the vmtkcenterlines probably because it is a 2D open stl. Can someone > suggest if there is a way to use the already implemented functions in > my case or, if not, tell me what /how to modify them to be applied on > 2d cases? I got a bit lost on all the voronoi and the centerline stuff. > > Regards > > francesco > > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > vmtk-users mailing list > vmtk-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/vmtk-users ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ vmtk-users mailing list vmtk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vmtk-users