[vtkusers] vtkDICOMImageReader and vtkImageShiftScale

Alex Duţu alex.dutu at gmail.com
Tue Jun 23 07:55:54 EDT 2009


Hi everyone,

I've seen that many of you had problems with volumeRayCastMapper because it
supports just unsigned char and unsigned short (vtkVolumeRayCastMapper
(025D0198): Cannot volume render data of type short, only unsigned char or
unsigned short.). I have the same problem so I used vtkImageShiftScale, but
the problem is still there. My code looks like this:


>    vtkDICOMImageReader *dicomReader = vtkDICOMImageReader::New();
>     dicomReader->SetDirectoryName("D:/images/MANIX/CER-CT/ANGIO CT");
>     dicomReader->Update();
>
>     vtkImageShiftScale *scale = vtkImageShiftScale::New();
>     scale->SetInput(dicomReader->GetOutput());
>     scale->SetOutputScalarTypeToUnsignedShort();
>
>     vtkVolumeRayCastMapper *VolumeMapper = vtkVolumeRayCastMapper::New();
>
>     VolumeMapper->SetBlendModeToComposite();
>     VolumeMapper->SetInput(scale->GetOutput());


Can anybody help me?

Thanks in advance,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090623/0075897e/attachment.htm>


More information about the vtkusers mailing list