<div dir="ltr"><div><div>HI,<br></div> I use double scaler type from input but work with (Black or white ) threshold setting   My code is follow bellow <br>int apply = 0;<br> imageThreshold->SetInputConnection(firstColorMapper->GetOutputPort());<br>  imageThreshold->ReplaceInOn();<br>  imageThreshold->SetInValue(255);<br> imageThreshold->ReplaceOutOn();<br>  imageThreshold->SetOutValue(255);<br>  imageThreshold->SetOutputScalarType(fixedConnector->GetOutput()->GetScalarType()); //double<br>  imageThreshold->ThresholdBetween(VTK_SHORT_MIN, VTK_SHORT_MAX);   <br>  imageThreshold->ThresholdBetween( -3495, 2161 );<br>  imageThreshold->SetOutValue(apply ? 0 : 255);<br>  imageThreshold->Update();<br><br><br>  <br>  double low   = (!enableThreshold) ? range[0] : lowThreshold;<br>  double upper = (!enableThreshold) ? range[1] : upperThreshold;<br>  <br>  <br>    vtkSmartPointer<vtkImageThreshold> imageThreshold2 = <br>    vtkSmartPointer<vtkImageThreshold>::New();<br> // imageThreshold2->SetInputData(mImage);<br>    imageThreshold2->SetInputConnection(secondColorMapper->GetOutputPort());<br>  imageThreshold2->ReplaceInOn();<br>   imageThreshold2->SetInValue(255);<br>  imageThreshold2->ReplaceOutOn();<br>  imageThreshold2->SetOutValue(255);<br> imageThreshold2->SetOutputScalarType(fixedConnector->GetOutput()->GetScalarType()); //double <br> imageThreshold2->ThresholdBetween(VTK_SHORT_MIN, VTK_SHORT_MAX);   <br>  imageThreshold2->ThresholdBetween( 160, 6088 );<br>  imageThreshold2->SetOutValue(apply ? 0 : 255); <br>  imageThreshold2->Update();<br><br><br></div>    Thanks<br><div>    <br>    <br><br>  <br></div></div>