[Insight-users] Problem in example itkReadITKImageShowVTK.cxx

Luis Ibanez luis.ibanez at kitware.com
Sat Mar 19 20:31:50 EST 2005


Hi Bear,


1) CT data is usually stored in "unsigned short" because
    Hounsfield units require a range from -1000 to 1000.


2) In order to be able to pass your data to VTK you can
    cast it using the itkCastImageFilter.  Examples are
    availabe in the ITK Software Guide

      http://www.itk.org/ItkSoftwareGuide.pdf



   Regards,


       Luis



-----------------------------------------
Bear Neural wrote:

> Hello all,
> 
> I have a problem when using the itkReadITKImageShowVTK.cxx example. I 
> would like to display a CT image which is 16 bit in vtk. However,  I got 
> an error stating that "vtkOpenGLImageActor (0x01C2F340): This filter 
> requires unsigned char scalars as input".
> 
> Also for DICOM files (CT generated by Siemens sensation 64), which data 
> type I should use? Unsigned short or float?
> 
> Thank you so much.
> 
> Bear
> 
> _________________________________________________________________
> No masks required! Use MSN Messenger to chat with friends and family. 
> http://go.msnserver.com/HK/25382.asp
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 





More information about the Insight-users mailing list