[ITK] Binary thresholding using OtsuThresholdImageFilter

Bradley Lowekamp blowekamp at mail.nih.gov
Thu May 8 09:09:29 EDT 2014


You can set the InsideValue to 1 and the OutsideValue to 0. To determine the default values you can print a constructed object, or you can examine the code[1].

[1] https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/Thresholding/include/itkHistogramThresholdImageFilter.hxx

Hope that helps,
Brad
On May 8, 2014, at 5:50 AM, Girish, Gavaskar Ruturaj <gavaskar.ruturaj.girish at philips.com> wrote:

> Dear all,
>  
> In OtsuThresholdImageFilter, can we decide if the calculated Otsu threshold becomes the lower threshold or upper threshold? I want a means to set values in the range (0, Otsu threshold) to 255 and other values to 0. What parameters do I need to set to achieve this?
> (I checked the code here: http://www.itk.org/Wiki/ITK/Examples/Segmentation/OtsuThresholdImageFilter , where the functions SetInsideValue & SetOutsideValue have not been used, so I am confused.)
>  
> 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/20140508/86aff914/attachment-0002.html>


More information about the Community mailing list