[Insight-users] polydata to pointset?

Alexandre GOUAILLARD agouaillard at gmail.com
Mon Mar 12 06:59:29 EDT 2012


Dear Lisa.

itkPoinSet is the class that can contain the data you are looking at,
but there is no "pointset" reader.

You can use the MeshIO (recommanded) framework, or the old
VTKPolyDataReader to read your vtk file, at which point you have your
points in the point container, and your cells in the cell container,
that you can choose to discard if you whish. Look at the
VTKPolyDataReader tests and example for sample code.

regards,

alex.


On Sat, Mar 10, 2012 at 6:59 AM, Lisa Dean <lisadean.leo at gmail.com> wrote:
> Hi List Users,
>
>
> I have a pair of polydata files. If I understand correctly, polydata files
> represent images in the form of points and cells, right? Is there any
> functionality in ITK that would allow me to represent it only using
> points(either by eliminating the cells or by reading the vertices of the
> cells as points)? What I'm saying is that I would like to convert my
> vtkpolydata file into an itkpointset where the points can be stored in point
> containers. Is that possible? Is there a class that allows me to do that?
>
>
> Thanks a lot
> Lisa
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list