[Insight-users] [Segfault] itk::NormalQuadEdgeMeshFilter and itk::WarpMeshFilter

Alexandre GOUAILLARD agouaillard at gmail.com
Thu Dec 6 00:53:35 EST 2012


dear oscar,

could you share a simple code that reproduce the problem?

There is no unsafe copying of QEMesh, itkQuadEdgeMeshToQuadEdgeMeshFilter
always hard copy (actually reconstructs the structure) the entire mesh.
This is because the QuadEdges have no container and other technical
details. This is one reason why the copying part is relatively slow today.
Points are safe to shallow copy, cell could be made safe to shallow copy,
but edge cells need to be added over again. This is what the filter does
when copying.

regards,

alex.





On Thu, Dec 6, 2012 at 9:32 AM, Oscar Esteban <oesteban at die.upm.es> wrote:

> Hi all,
>
> I'm trying to compute the Normals of a QuadEdgeMesh after warping it with
> itk::WarpMeshFilter and a displacement field.
>
> I save to vtk files the result and the points seem to be correctly
> displaced, but when computing the normals, I get a segmentation fault in
> line 302 of itkQuadEdge.h.
>
> I think that the output Mesh after the WarpMeshFilter lacks of some
> properties needed by the normals filter.
>
> In order to solve this, I could copy this properties from the input mesh
> to the output. This are my questions:
> - What is missing after the WarpMeshFilter?
> - How to safely clone (deep-copy) a QuadEdgeMesh? (I have this problem in
> some other parts of my code).
>
> Thank you so much in advance.
>
> Best,
> Oscar Esteban
>
> *______________________________________*
> *Oscar Esteban*
> PhD Student / Researcher
>
> Biomedical Image Technologies (BIT), UPM
> ETSI Telecomunicación Lab. C203, Av. Complutense s/n - E-28040 Madrid
> (Spain)
> +34 915 495 700 ext.4234
>
> Signal Processing Laboratory (LTS5), EPFL-STI-IEL-LTS5
> ELD 224 (Bâtiment ELD), Station 11, CH-1015 Lausanne, Switzerland
>
>
> _____________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121206/0db0ca8c/attachment.htm>


More information about the Insight-users mailing list