<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> typedef itk::BinaryThresholdImageFilter< InternalImageType, InternalImageType > ThresholdFilterType;<br><br> ThresholdFilterType::Pointer threshold = ThresholdFilterType::New();<br><br> threshold->SetInput (relabel->GetOutput());<br> threshold->SetInsideValue(itk::NumericTraits<InternalPixelType>::Zero);<br> threshold->SetOutsideValue(itk::NumericTraits<InternalPixelType>::One);<br> threshold->SetUpperThreshold(0.00);<br> threshold->Update();<br> <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>