[vtkusers] Re: vtkImagePlaneWidget problem on vtkImageData (C++)

Adrian Wyssmann wyssa1 at hta-bi.bfh.ch
Tue Nov 9 08:33:30 EST 2004


Thanks Dean

works fine. But why does my color image change into a black-and-white  
image, if I chage the Window-Level. After resetting with the following  
code, it's colored again?

float* range = pImageData->GetScalarRange();
m_pImageViewer2->SetColorWindow(range[1] - range[0]);
m_pImageViewer2->SetColorLevel(0.5*(range[1] + range[0]));


Thanks in advance

Adrian


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/



More information about the vtkusers mailing list