<div dir="ltr">Dear itk users,<br><br>I&#39;m trying to use ScalarToRGBColormapImageFilter to map a scalar to rgb color. According to the document, &quot;The range of values present in the input image is the range that is mapped to the entire range of colors&quot;. 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&lt; ImageType2DF::PixelType, RGBImageType::PixelType &gt;  ColormapType;<br><div>     ColormapType::Pointer colormap = ColormapType::New();<br><div><div>    colormap-&gt;SetMinimumInputValue(0); </div>
<div>    colormap-&gt;SetMaximumInputValue(255); </div><div>    std::cout &lt;&lt; &quot;max input: &quot; &lt;&lt; colormap-&gt;GetMaximumInputValue() &lt;&lt; std::endl;</div><div>    rgbfilter-&gt;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&#39;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>