[Insight-developers] LabelMapOverLay vs ScalarRGBColormap range

Nicholas Tustison ntustison at gmail.com
Tue Nov 1 11:55:21 EDT 2011


Hi Brad,

Would it help that even though the internal calculations of the colormap functions 
are in [0,1], the user can set an arbitrary output range through the variables

m_MinimumRGBComponentValue
m_MaximumRGBComponentValue

?

Nick





On Nov 1, 2011, at 10:52 AM, Bradley Lowekamp wrote:

> Hello,
> 
> I was just looking at these two filters. LabelMapOverlay outputs RGB pixels in the range [0,255] while ScalarToRGBColormap outputs to the range [0,1].  I have not looked through other similar color mapping like filters. But it would be very nice if this could be consistent across ITK.
> 
> My preference and I think what would make the most sense for SimpleIT is to output uint8 so the range is 0 to 255. 
> 
> These two classes are different in that one deals with discrete labels and the other is a continuous range, but it would be very nice if this was consistent.
> 
> Thanks,
> Brad
> 
> 
> ========================================================
> Bradley Lowekamp  
> Medical Science and Computing for
> Office of High Performance Computing and Communications
> National Library of Medicine 
> blowekamp at mail.nih.gov
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20111101/b8c6b430/attachment.htm>


More information about the Insight-developers mailing list