<div dir="ltr">Hi Antonio, it is hard to tell without seeing the actual code and the original input and output images but I would start with double checking that the input image is indeed binary. If the areas where you get holes are very close to the foreground value but slightly different, that would explain the situation. If that&#39;s not the case please attach the code so that someone here can reproduce the behavior. <div>
<br></div><div>Cheers, </div><div> Cagatay</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 12:59 PM, Antonio Calabrese <span dir="ltr">&lt;<a href="mailto:calantoanto@gmail.com" target="_blank">calantoanto@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">Hy all,<br>
i have encountered some troubles with my Pipeline.<br>
I generated a binary mask of a RM image from a mouse exam.<br>
I would like to work with an implementation of &quot;BinaryToShapeLabelMapFilter&quot;<br>
and &quot;ShapeOpeningLabelMapFilter&quot; classes to remove some objects in a labeled<br>
image with a size value smaller or greater than a threshold.<br>
Really, my pipeline works, but it returns me a binary mask with some<br>
troubles. Indeed, when i processed the binary image by setting a threshold<br>
on size, it returns me a image with two types of inaccuracies. I don&#39;t know<br>
why, but i get an image with some holes, which weren&#39;t shown before and<br>
there is a big difference with the border of the object that shows a<br>
different value if compared to the previous one. I attach below my code and<br>
a link to a picture, hoping it will be useful to understand better the<br>
problem encountered.<br>
<br>
<br>
<br>
<a href="http://f.cl.ly/items/3Y3l2B0h2F3K0H2R1R38/Troubles.tiff" target="_blank">http://f.cl.ly/items/3Y3l2B0h2F3K0H2R1R38/Troubles.tiff</a><br>
&lt;<a href="http://f.cl.ly/items/3Y3l2B0h2F3K0H2R1R38/Troubles.tiff" target="_blank">http://f.cl.ly/items/3Y3l2B0h2F3K0H2R1R38/Troubles.tiff</a>&gt;<br>
Thanks,<br>
<br>
Antonio.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/Troubles-with-the-manipulation-of-label-objects-tp31457.html" target="_blank">http://itk-users.7.n7.nabble.com/Troubles-with-the-manipulation-of-label-objects-tp31457.html</a><br>

Sent from the ITK - 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.php" target="_blank">http://www.kitware.com/products/protraining.php</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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Cemal Cagatay Bilgin</span>, <span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">PhD</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Life Sciences Division</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Lawrence Berkeley National Lab</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">MS977, One Cyclotron Road</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Berkeley, CA 94720, USA</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Email: <a href="mailto:ccbilgin@lbl.gov" target="_blank">ccbilgin@lbl.gov</a></span>
</div></div>