<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi everyone,<br><br>I'm trying to use<font style="font-size: 10pt;" face="Tahoma" size="2"> itk::BinaryThresholdImageFilter but I have some problems. <br>I have a grayscale image and I would like to obtain a new image with all the not zero pixels in white. <br><br>I don't understand how to use ThresholdFilter with one threshold. <br><br>This is my code:<br><br>[...]<br>&nbsp;typedef itk::BinaryThresholdImageFilter&lt; InternalImageType, InternalImageType &gt; ThresholdFilterType;<br><br>&nbsp; ThresholdFilterType::Pointer threshold = ThresholdFilterType::New();<br><br>&nbsp; threshold-&gt;SetInput (relabel-&gt;GetOutput());<br>&nbsp;threshold-&gt;SetInsideValue(itk::NumericTraits&lt;InternalPixelType&gt;::Zero);<br>&nbsp;threshold-&gt;SetOutsideValue(itk::NumericTraits&lt;InternalPixelType&gt;::One);<br>&nbsp; threshold-&gt;SetUpperThreshold(0.00);<br>&nbsp; threshold-&gt;Update();<br>&nbsp;<br>[...]<br><br>I obtain an image where pixel are black or gray, not white... Can anyone help me to understand the Threshold Filter? Where is my error?<br><br>Thanks a lot<br>Daniela<br></font>                                               </body>
</html>