Hi, i have made changes to the filter. It works for your image.<div>  <a href="http://review.source.kitware.com/#change,2052">http://review.source.kitware.com/#change,2052</a></div><div>You can download it and have a try.</div>
<div><br></div><div><br></div><div>wanlin</div><div><br><br><div class="gmail_quote">On Fri, Jul 8, 2011 at 3:02 AM, Olga C Avila-Montes <span dir="ltr">&lt;<a href="mailto:ocamcaro@gmail.com">ocamcaro@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Sure!<br>
I&#39;m attaching the files I&#39;m working with so you can reproduce the results. .<br>
.<br>
<a href="http://itk-insight-users.2283740.n2.nabble.com/file/n6559124/QFPat1-pth-mask.mhd
QFPat1-pth-mask.mhd" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/file/n6559124/QFPat1-pth-mask.mhd<br>
QFPat1-pth-mask.mhd</a><br>
<a href="http://itk-insight-users.2283740.n2.nabble.com/file/n6559124/QFPat1-pth-mask.raw
QFPat1-pth-mask.raw" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/file/n6559124/QFPat1-pth-mask.raw<br>
QFPat1-pth-mask.raw</a><br>
<a href="http://itk-insight-users.2283740.n2.nabble.com/file/n6559124/QFPat1-pth-mesh.vtk
QFPat1-pth-mesh.vtk" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/file/n6559124/QFPat1-pth-mesh.vtk<br>
QFPat1-pth-mesh.vtk</a><br>
BTW, the mesh is open on the top and bottom. . .<br>
I don&#39;t know if it that has something to do with the error I&#39;m getting.<br>
Thanks!<br>
<div class="im"><br>
<br>
-----<br>
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">ocamcaro@gmail.com</a><br>
--<br>
</div>View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Binary-image-to-Mesh-Mesh-to-Binary-image-tp6535305p6559124.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Binary-image-to-Mesh-Mesh-to-Binary-image-tp6535305p6559124.html</a><br>

<div><div></div><div class="h5">Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>