[ITK] Finding non-zero pixels

Bradley Lowekamp blowekamp at mail.nih.gov
Tue Jun 3 08:13:28 EDT 2014


Hello,

There quite a large number of ways to do this in ITK. Have you looked at the ThresholdImageFilter[1]?

Brad

[1] http://www.itk.org/Doxygen/html/classitk_1_1ThresholdImageFilter.html

On Jun 3, 2014, at 2:34 AM, Girish, Gavaskar Ruturaj <gavaskar.ruturaj.girish at philips.com> wrote:

> Dear all,
>  
> I have a grayscale image. I want a binary mask which is white where the pixels in the original image are non-zero, and black elsewhere. Which filter(s) can I use for this task?
>  
> Thanks & Regards,
> Ruturaj
> 
> The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140603/80a6097a/attachment-0002.html>


More information about the Community mailing list