[ITK] Binary thresholding using OtsuThresholdImageFilter
Girish, Gavaskar Ruturaj
gavaskar.ruturaj.girish at philips.com
Fri May 9 02:19:56 EDT 2014
Dear Brad,
Thank you. I am able to get it to work.
Regards,
Ruturaj
From: Bradley Lowekamp [mailto:blowekamp at mail.nih.gov]
Sent: Thursday, May 08, 2014 6:39 PM
To: Girish, Gavaskar Ruturaj
Cc: community at itk.org
Subject: Re: [ITK] Binary thresholding using OtsuThresholdImageFilter
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<mailto: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<mailto: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/20140509/745788ae/attachment-0002.html>
More information about the Community
mailing list