[ITK] [ITK-users] problem with RelabelComponentImageFilter

Dženan Zukić dzenanz at gmail.com
Thu Sep 28 09:35:52 EDT 2017


Also, after you call execute, can you call
relabelFilter.GetOriginalNumberOfObjects() and see if this returns non-zero
number?

On Thu, Sep 28, 2017 at 9:33 AM, Dženan Zukić <dzenanz at gmail.com> wrote:

> Hi Aurelie,
>
> 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?
>
> Regards,
> Dženan
>
> On Thu, Sep 28, 2017 at 3:18 AM, Aurelie Le breton <lebreton.a at gmail.com>
> wrote:
>
>> 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.
>>
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/insight-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170928/beebc824/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list