<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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].<div><br></div><div>[1] <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/Thresholding/include/itkHistogramThresholdImageFilter.hxx">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/Thresholding/include/itkHistogramThresholdImageFilter.hxx</a></div><div><br></div><div>Hope that helps,</div><div>Brad<br><div><div>On May 8, 2014, at 5:50 AM, Girish, Gavaskar Ruturaj <<a href="mailto:gavaskar.ruturaj.girish@philips.com">gavaskar.ruturaj.girish@philips.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Dear all,<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">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?<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">(I checked the code here:<span class="Apple-converted-space"> </span><a href="http://www.itk.org/Wiki/ITK/Examples/Segmentation/OtsuThresholdImageFilter" style="color: purple; text-decoration: underline;">http://www.itk.org/Wiki/ITK/Examples/Segmentation/OtsuThresholdImageFilter</a><span class="Apple-converted-space"> </span>, where the functions SetInsideValue & SetOutsideValue have not been used, so I am confused.)<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Thanks & Regards<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Ruturaj<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div></div><br><hr><font face="Arial" color="Gray" size="1">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.<br></font>_______________________________________________<br>Community mailing list<br><a href="mailto:Community@itk.org" style="color: purple; text-decoration: underline;">Community@itk.org</a><br><a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" style="color: purple; text-decoration: underline;">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a></div></blockquote></div><br></div></body></html>