Niccolo', My strategy is once I am deformation, I convert the mesh back to Triangle and do all my calculation there. I have also committed itkTriangletoBinaryMesh a year ago I think which will convert the mesh to a binary image. when I have a chance I will check triangletosimplex class to see why it is using so much memory. Leila On Fri, 2008-09-12 at 12:29 +0200, Niccolo' Camarlinghi wrote: > Dear all, > > I'm trying to extract a surface of a sphere of radius 250 px in an image > of 515*512*512 px and calculate volume and area of this object(this kind > of problem should reproduce the computational cost of working with the > pleura surface extracted from a lung CT ). > > My procedure is divided in 4 steps > > > > 0) Creating the sphere > 1) I extract the surface using BinaryMask3DMeshSource > 2) I convert the triangular mesh obtained from the previous step to a > Simplex mesh using TriangleMeshToSimplexMesh > 3) I evaluate the volume and the area of this simplex mesh using > > > My problem in the second step the memory consumption is very high (the > process uses swap on a 64 bit machine with 4 gb of ram ). > My question is: Is there any way to reduce the memory impact of the > TriangleMeshToSimplexMesh filter ? > > > > i allegated the code i'm using > > > > > Best Regards > > Niccolo' Camarlinghi > > > > > > > _______________________________________________ > Insight-users mailing list > Insight-users@itk.org > http://www.itk.org/mailman/listinfo/insight-users