<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>(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.setMinimumObjectSize(islet_size)<span style="color:rgb(204,120,50)">;<br></span>BigInteger taille = relabelFilter.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(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>