<p>Can you please help me to see if I apply InvertIntensityImageFilter correctly or not as in enclosed code snippet?</p>
<p>I have no idea why the output image is blank. Your kind help is greatly appreciated. </p>
<p>// Invert intensity of the image<br> itk::InvertIntensityImageFilter<InputImageType,InputImageType>::Pointer invertImage;<br> invertImage = itk::InvertIntensityImageFilter<InputImageType,InputImageType>::New();<br>
invertImage->SetInput(inputImage->GetOutput());</p>
<p> try<br> {<br> invertImage->Update();<br> }<br> catch( itk::ExceptionObject & exception )<br> {<br> std::cout << "Problems in shrinking the image" << std::endl;<br>
std::cout << exception << std::endl;<br> return 1;<br> }<br>// End of invert intensity</p>