[Insight-users] calculate normal
Leila Baghdadi
baghdadi at phenogenomics.ca
Wed Feb 20 10:28:59 EST 2008
Yep that's right and another note,
you "must" create a triangle mesh in order to create a simplex mesh!
If you are unsure about how it is done, check the paper
simplex mesh
by herve delingette of INRIA france
good luck
Leila
On Wed, 2008-20-02 at 12:47 +0100, Iván Macía wrote:
> Hi Rashed,
>
> You can do what you mention with VTK or directly in ITK use
> itk::BinaryMask3DMeshSource, which is the equivalent of Marching Cubes in
> ITK. As the name implies, you need a binary mask (segmentation) as input.
>
> HTH
>
> Ivan
>
> -----Mensaje original-----
> De: insight-users-bounces+imacia=vicomtech.org at itk.org
> [mailto:insight-users-bounces+imacia=vicomtech.org at itk.org] En nombre de
> rashedk
> Enviado el: miércoles, 20 de febrero de 2008 12:06
> Para: insight-users at itk.org
> Asunto: Re: [Insight-users] calculate normal
>
>
> Hi,
>
> How do I convert my 3D image data to a simplex mesh in order to compute the
> normals? Checking the class documentation for itk::SimplexMesh reveals that
> one has to generate a triangle mesh and then use the
> itkTriangleMeshToSimplexMeshFilter. But then how do I convert my 3D image
> data to a triangle mesh?? Do I use vtkContour to produce polyData and then
> convert it to itkMesh using appropriate filters?
>
> Any help will be appreciated,
>
> Thanks
> Rashed
>
>
>
> Luis Ibanez wrote:
> >
> > Hi Tony,
> >
> >
> > Well.... if you only have a point, then there is no normal to compute.
> >
> > You probably are thinking of a point from a surface, where a point
> > belongs to several faces and have other points as neighbors.
> >
> >
> > In that case you may want to look at the itk::SimplexMesh
> > http://www.itk.org/Insight/Doxygen/html/classitk_1_1SimplexMesh.html
> >
> > and its "ComputeNormal" method:
> >
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1SimplexMesh.html#itk_1_1
> SimplexMesha5
> >
> >
> > Regards,
> >
> >
> > Luis
> >
> >
> > -------------------
> > tony hakki wrote:
> >> Is it possible to calculate normal of a point in ITK? If yes, Could you
> >> tell which class should be used?
> >> thank you
> >>
> >>
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
>
More information about the Insight-users
mailing list