[Insight-users] calculate normal
Iván Macía
imacia at vicomtech.org
Wed Feb 20 06:47:41 EST 2008
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
>
>
--
View this message in context:
http://www.nabble.com/calculate-normal-tp8505455p15586698.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.8/1288 - Release Date: 19/02/2008
20:47
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.8/1288 - Release Date: 19/02/2008
20:47
More information about the Insight-users
mailing list