imaging pipeline..

David Gobbi dgobbi at irus.rri.on.ca
Fri Dec 3 01:35:38 EST 1999


On Thu, 2 Dec 1999, Charles Law wrote:

> Try: imapper->SetColorWindow(255);  imapper->SetColorLevel(127.5);
> 
> These values should probably be the default.
> 
> Charles.

Hi Charles, 

I concur.  It would be very nice to see this changed before 3.0,
and I would be willing to patch a few regression tests to help 
it happen. 

It should also be clearly stated in both vtkImageMapper.h and
vtkImageViewer.h why the values 255.0,127.5 are special, i.e.
that they allow direct display of 8-bit greyscale and RGB data.
Some of VTK's own regression tests make the mistake of
using SetColorWindow(256.0)!  
(Yeah, it is nitpicking, but medical physicists are paid to
be picky ...)

 - David
 
--
  David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario




-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list