[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    [Insight-users] Binary image to Mesh / Mesh to Binary image
From:       "Olga C. Avila-Montes" <ocamcaro () gmail ! com>
Date:       2011-06-30 22:34:08
Message-ID: BANLkTi=cv8NPrvvf38A-TbOOSWq41VcYyQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi!
So here is the thing. . .I have a segmentation in a 3D binary mask (let's
call it original) and then obtained its mesh
using itkBinaryMask3DMeshSource, finally I stored the itk mesh in a .vtk
file using itkVTKPolyDataWriter.
Everything good so far.
Then I created another function that reads the .vtk file into an itk mesh
using itkVTKPolyDataReader, I get the 3D binary mask (let's call it output)
from the mesh using itkTriangleMeshToBinaryImageFilter and store it as a
.mhd file.
Here is the problem: when I load both my original and the output binary
masks, I'm expecting them to be exactly the same BUT the last slice of my
output volume turns out to be all zeros. I'm attaching an image that
hopefully will describe what's happening better. . .
Does anybody knows what is causing this? and how to solve it?
Thanks a lot!

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@gmail.com

[Attachment #5 (text/html)]

Hi!<div>So here is the thing. . .I have a segmentation in a 3D binary mask (let&#39;s \
call it original) and then obtained its mesh using itkBinaryMask3DMeshSource, finally \
I stored the itk mesh in a .vtk file using itkVTKPolyDataWriter.</div>


<div>Everything good so far.</div><div>Then I created another function that reads the \
.vtk file into an itk mesh using itkVTKPolyDataReader, I get the 3D binary mask \
(let&#39;s call it output) from the mesh using itkTriangleMeshToBinaryImageFilter and \
store it as a .mhd file.</div>


<div>Here is the problem: when I load both my original and the output binary masks, \
I&#39;m expecting them to be exactly the same BUT the last slice of my output volume \
turns out to be all zeros. I&#39;m attaching an image that hopefully will describe \
what&#39;s happening better. . .</div>


<div>Does anybody knows what is causing this? and how to solve it?</div><div>Thanks a \
lot!</div><div><br></div><div>Olga C Avila-Montes<br>Research Assistant, \
Computational Biomedicine Lab (<a href="http://www.cbl.uh.edu" \
target="_blank">www.cbl.uh.edu</a>)<br>


Dept. of Computer Science, University of Houston, Houston, TX 77204-3010<br>Email: <a \
href="mailto:ocamcaro@gmail.com" target="_blank">ocamcaro@gmail.com</a><br> </div>

--00504502b1a6fdbf2b04a6f580aa--


["binarymask.png" (image/png)]

_____________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic