Aurelie Le breton
2017-09-28 07:18:40 UTC
Hello,
I'm using ITK, and since a few days SimpleITK, and I've got a problem with
the RelabelComponentImageFilter.
I haven't found the way to change the minimum objects size, here is my code
(SimpleITK via Java) :
BigInteger islet_size = BigInteger.valueOf(round(height/5)); // = 102
RelabelComponentImageFilter relabelFilter = new RelabelComponentImageFilter();
relabelFilter.setMinimumObjectSize(islet_size);
BigInteger taille = relabelFilter.getMinimumObjectSize();
System.out.println(taille);
relabelImage[i] = relabelFilter.execute(connectedComponentOutput[i]/*,
islet_size*/);
The size displayed in the terminal is : class org.itk.simple.SimpleITKJNI
and the output image is filled full black.
I don't understand the problem.
Thanks in advance for your help.
I'm using ITK, and since a few days SimpleITK, and I've got a problem with
the RelabelComponentImageFilter.
I haven't found the way to change the minimum objects size, here is my code
(SimpleITK via Java) :
BigInteger islet_size = BigInteger.valueOf(round(height/5)); // = 102
RelabelComponentImageFilter relabelFilter = new RelabelComponentImageFilter();
relabelFilter.setMinimumObjectSize(islet_size);
BigInteger taille = relabelFilter.getMinimumObjectSize();
System.out.println(taille);
relabelImage[i] = relabelFilter.execute(connectedComponentOutput[i]/*,
islet_size*/);
The size displayed in the terminal is : class org.itk.simple.SimpleITKJNI
and the output image is filled full black.
I don't understand the problem.
Thanks in advance for your help.