Hi Firas, the segmentation you get from level sets is actually a volume (e.g. foo_ls.vti), that you then pass to vmtkmarchingcubes to generate a surface. If you load that volume with vmtkimageviewer, you'll see that it's mostly white and it's black inside the model. Therefore as far as the segmentation is concerned, the "mask" is the portion of the volume produced by segmentation that has negative values.
As to the centerline, there is no canned way in vmtk for sampling the centerline over the image, but it's not hard to do using VTK. There's a filter, vtkVoxelModeller, that just does this. Alternatively, you could use vmtkcenterlinemodeller -ifile centerline.vtp -imagefile image.vti -ofile centerlinemask.vti -radiusarray MaximumInscribedSphereRadius but this will generate a volume that crosses zero at the boundary of the centerline tube (i.e. considering its radius), not at the centerline itself. Of course you could change the radius of the centerline to a small value, so that the tube you get is thin around the centerline. You can do that in Paraview, using the Calculator filter to rescale the MaximumInscribedSphereRadius array. Hope this is a start, thanks for appreciating the project. Luca On Nov 9, 2010, at 9:56 AM, Firas Mualla wrote: > Hi, > how can I map the segmentation and the centerline back to the input > image, s.t. I know at each voxel of the input image whether it is mask > or not (and centerline or not) ? > > with many thanks for this nice project > > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > vmtk-users mailing list > vmtk-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/vmtk-users ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ vmtk-users mailing list vmtk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vmtk-users