[Insight-users] Binary image to Mesh / Mesh to Binary image

Leila Baghdadi baghdadi at phenogenomics.ca
Thu Jul 7 12:52:42 EDT 2011


I will have to do an investigation, unfortunately I am really busy right now,

will make a note and hopefully look into it sometime next week

Leila

----- Original Message -----
From: Olga C Avila-Montes <ocamcaro at gmail.com>
Sent: Thu, 7/7/2011 12:38pm
To: insight-users at itk.org
Subject: Re: [Insight-users] Binary image to Mesh / Mesh to Binary image

Leila, you are correct, the output of itkTriangleMeshToBinaryImageFilter is
the bottom volume with the last slice with all zeros.
I'm actually giving the origin, spacing and size of the original (upper)
volume like this:

    typedef itk::TriangleMeshToBinaryImageFilter< MeshType, OutputImageType >
TriangleImageType;
    TriangleImageType::Pointer imageFilter = TriangleImageType::New(  );
    imageFilter->SetInput( polyDataReader->GetOutput(  ) );
    imageFilter->SetSize( original->GetLargestPossibleRegion(  ).GetSize(  ) );
    imageFilter->SetOrigin( original->GetOrigin(  ) );
    imageFilter->SetSpacing( original->GetSpacing(  ) );

So I don't really know what is causing the problem :\

-----
Olga C Avila-Montes
Research Assistant, Computational Biomedicine Lab (www.cbl.uh.edu)
Dept. of Computer Science, University of Houston, Houston, TX 77204-3010
Email: ocamcaro at gmail.com
--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Binary-image-to-Mesh-Mesh-to-Binary-image-tp6535305p6559031.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
_____________________________________
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.html

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