[ITK-users] SimpleITK | BinaryMorphologicalClosing, filter noise
Bradley Lowekamp
blowekamp at mail.nih.gov
Thu May 7 11:24:08 EDT 2015
Hello,
This is likely due to how you are defining a binary image.
SimpleITK has the established convention that for binary images/ masks, that 0 are the background and 1 is the foreground [1]. This is reflected in the default parameters of many filters, including the binary morphological filters.
Most likely you need to check the value of the ForegroundValue.
HTH,
Brad
[1] http://www.itk.org/SimpleITKDoxygen/html/ConventionsPage.html
On May 7, 2015, at 11:10 AM, Wookyung An <aqualiquid1 at gmail.com> wrote:
> Hi ITK users,
>
> I am pretty fresh of SimpleItk. I tried to use BinaryMorphologicalClosing to filter some noises that are smaller than the structuring element. I noticed that the default kernel type is "ball" which is ok. However, after I applied the function, there is no change at all.
> For example, I tried to filter which smaller than 10(radius).
> after_morp = SimpleITK.BinaryMorphologicalClosing(binarized_img, 10);
>
>
>
> But I found that nothing changed at all. Do you have any idea what was the problem?
>
>
>
> Thank you in advance.
>
>
> _____________________________________
> 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/insight-users/attachments/20150507/561bae7d/attachment.html>
More information about the Insight-users
mailing list