[vtkusers] Comput the area contained by a contour (VTK C++)

Belaroussi, Boubakeur Boubakeur.Belaroussi at bioclinica.com
Thu Nov 29 12:41:22 EST 2012


Hi Rodrigo,

For 2D contours, you can use the following pipeline:

1. Transform your contour points into triangles, using vtkTriangleFilter, which creates triangle polygons from input polygons and triangle strips
2. Then, to get the area of your contour, among other features, you can use the vtkMassProperties filter, which estimates volume, area, shape index of triangle mesh.

Hope it helps
Regards,
Bouba

From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Rodrigo Lovera
Sent: jeudi 29 novembre 2012 18:01
To: VTK Users
Subject: [vtkusers] Comput the area contained by a contour (VTK C++)

Hello everyone,

I was wondering if any of you know a method to compute the area cointained by a figure or maybe something like the contourwidget which shape can be changed at will.

What I need -d be some kind of implementation or code or guide on how to perform that math operation, similar to the distance widget but what I need to compute now is area.

Id really appreciate any kind of help

--
Rodrigo

--
Confidentiality Notice: This e-mail transmission may contain confidential or legally privileged information that is intended only for the individual or entity named in the e-mail address. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this e-mail is strictly prohibited. If you have received this e-mail transmission in error, please reply to the sender and then delete the message from your computer. Thank you.
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121129/62bb9f4b/attachment.htm>


More information about the vtkusers mailing list