[vtkusers]color window+color level
m26404030 at john.petra.ac.id
m26404030 at john.petra.ac.id
Wed Sep 26 13:48:11 EDT 2007
hi all, i want to display 2D image(BMP image).
This is my code
void main()
{
vtkBMPReader *reader=vtkBMPReader::New();
reader->SetFileName("image.bmp");
reader->Update();
vtkImageViewer *viewer=vtkImageViewer::New();
viewer->SetInput(reader->GetOutput());
//viewer->SetColorWindow();
//viewer->SetColorLevel();
viewer->Render();
}
i can display the image but the result is not good.(the image looks darker)
i believe the problem is in the SetColorWindow and SetColorLevel function.
how can i specify the parameter of those two functions so i can display the
image exactly the same as the original image??(i have tried some values but the
display still not good enough)
thanx a lot..
More information about the vtkusers
mailing list