<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Aurelie,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">if you don't call .setMinimumObjectSize(), do you still get an all-black image? If not, does any of the objects consist of more than 102 pixels?</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 28, 2017 at 3:18 AM, Aurelie Le breton <span dir="ltr"><<a href="mailto:lebreton.a@gmail.com" target="_blank">lebreton.a@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello,<br><br></div>I'm using ITK, and since a few days SimpleITK, and I've got a problem with the RelabelComponentImageFilter.<br></div>I haven't found the way to change the minimum objects size, here is my code (SimpleITK via Java) :<br><br><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"Source Code Pro"">BigInteger islet_size = BigInteger.<span style="font-style:italic">valueOf</span>(<span style="font-style:italic">round</span>(<wbr>height/<span style="color:rgb(104,151,187)">5</span>))<span style="color:rgb(204,120,50)">; // = 102<br></span>RelabelComponentImageFilter relabelFilter = <span style="color:rgb(204,120,50)">new </span>RelabelComponentImageFilter()<span style="color:rgb(204,120,50)">;<br></span>relabelFilter.<wbr>setMinimumObjectSize(islet_<wbr>size)<span style="color:rgb(204,120,50)">;<br></span>BigInteger taille = relabelFilter.<wbr>getMinimumObjectSize()<span style="color:rgb(204,120,50)">;<br></span>System.<span style="color:rgb(152,118,170);font-style:italic">out</span>.println(taille)<span style="color:rgb(204,120,50)">;<br></span>relabelImage[i] = relabelFilter.execute(<wbr>connectedComponentOutput[i]<span style="color:rgb(128,128,128)">/*, islet_size*/</span>)<span style="color:rgb(204,120,50)">;<br><br></span></pre><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"Source Code Pro""><span style="color:rgb(204,120,50)">The size displayed in the terminal is : class org.itk.simple.SimpleITKJNI<br></span></pre><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"Source Code Pro""><span style="color:rgb(204,120,50)">and the output image is filled full black.<br><br></span></pre><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"Source Code Pro""><span style="color:rgb(204,120,50)">I don't understand the problem.<br></span></pre><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"Source Code Pro""><span style="color:rgb(204,120,50)">Thanks in advance for your help.<br></span></pre></div>
<br>______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>