[ITK] [ITK-users] problem with RelabelComponentImageFilter
Lowekamp, Bradley (NIH/NLM/LHC) [C]
blowekamp at mail.nih.gov
Thu Sep 28 10:49:47 EDT 2017
Hello,
You initial report said “the output image is filled with black”. It is unclear how you are viewing the image. Perhaps it is just 0’s and 1’s, and you can not see such faint values on the display.
I’d suggest running the LabelStatisticsImageFilter on the results to print the number of labels in the output and their sized. You could also run this on the input too, to get the expected results.
You could also set ` relabelFilter.debugOn()`, this will print the ITK filter’s state before it’s executed, so that you can verify the parameters are correctly set.
The missing GetOriginalNumberOfObjects in SimpleITK is an oversight. Could you please create a feature request on the Github issue tracker[1].
[1] https://github.com/SimpleITK/SimpleITK/issues
On 9/28/17, 10:40 AM, "lilipj" <lebreton.a at gmail.com> wrote:
If i don't call setMinimumObjectSize(), all labels are kept, even labels
that contains more than 102 pixels or those that are very small.
That's what i don't understand !!
I can't call GetOriginalNumberOfObjects with SimpleITK, the function doesn't
exists....
--
Sent from: http://itk-users.7.n7.nabble.com/
_____________________________________
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
_______________________________________________
Community mailing list
Community at itk.org
http://public.kitware.com/mailman/listinfo/community
_____________________________________
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