[vtkusers] display DICOM image

John Drescher drescherjm at gmail.com
Wed May 30 14:46:54 EDT 2012


> vtkImageCast *imageCast = vtkImageCast::New();
>   imageCast->SetInput( reader->GetOutput() );
>   imageCast->SetOutputScalarTypeToUnsignedChar();
> imageCast->Update();
>
> try to use this code
>

That would work although you may want to use vtkImageMapToColors and
adjust the Window and Level.

John



More information about the vtkusers mailing list