[vtkusers] display dicom image in vtk

John Drescher drescherjm at gmail.com
Thu Apr 2 22:21:25 EDT 2009


> Would you please introduce a little bit more? How to set up the lookup table
> and window/level operations?

Its a filter just like any other filter.

	m_WLFilter = vtkImageMapToWindowLevelColors::New();
	m_WLFilter->SetOutputFormatToLuminance();
	m_WLFilter->SetInput( reader->GetOutput());
        m_WLFilter->SetWindow(1000.0);
	m_WLFilter->SetWindow(400.0);
	m_WLFilter->UpdateWholeExtent();


        vtkImageActor *actor = vtkImageActor::New();
        actor->SetInput(m_WLFilter->GetOutput());


>I dont know how to do that.
> Does anybody else encounter this problem before?
>

Probably every single person who views a 2 byte per pixel DICOM image with vtk..



John



More information about the vtkusers mailing list