<div dir="ltr">Dear itk users,<br><br>I'm trying to use ScalarToRGBColormapImageFilter to map a scalar to rgb color. According to the document, "The range of values present in the input image is the range that is mapped to the entire range of colors". However, I want to fix the range of the input image.  That is, no matter what intensity range of the input image is, I want the range [0, 255] map to the full color range. So far I have tried the following approach:<div>
<br>     typedef itk::Function::HotColormapFunction< ImageType2DF::PixelType, RGBImageType::PixelType >  ColormapType;<br><div>     ColormapType::Pointer colormap = ColormapType::New();<br><div><div>    colormap->SetMinimumInputValue(0); </div>
<div>    colormap->SetMaximumInputValue(255); </div><div>    std::cout << "max input: " << colormap->GetMaximumInputValue() << std::endl;</div><div>    rgbfilter->SetColormap(colormap);</div>
</div></div><div><br></div><div>I can see the maximum input value is correctly set. But it seems the ScalarToRGBColormapImageFilter still define the input range by reading the input image's min/max value. Did I miss something? </div>
<div><br></div><div>I have a related question: it looks itk does not have a filter to overlay a continuous value image onto a gray level intensity image. That is the reason I mannually convert the scalar image to rgb image, and overlay it onto the gray level intensity image. Is there better way of doing it?</div>
<div><br></div><div>I appreciate your input.</div><div><br></div><div>Wei</div></div></div>