[Insight-users] short format

john smith mkitkinsightuser at gmail.com
Sun Jun 5 05:12:49 EDT 2011


Hello,

I am using "itkExtractImageFilter.h" and "itkRescaleIntensityImageFilter.h",
in order to read a 3D volume and display a rescaled slice with values
[0,255]. So far I displayed my results in a png image with these
characteristics:
*
  typedef short               InputPixelType;
  typedef unsigned char       OutputPixelType;
  const   unsigned int        Dimension = 3;

  typedef itk::Image< InputPixelType,  Dimension >    InputImageType;
  typedef itk::Image< OutputPixelType, Dimension >    OutputImageType;
  typedef itk::ImageFileReader< InputImageType  >  ReaderType;

  typedef unsigned char        InputPixelType_extract;
  typedef unsigned char        OutputPixelType_extract;
  typedef itk::Image< InputPixelType_extract,  3 >
InputImageType_extract;
  typedef itk::Image< OutputPixelType_extract, 2 >
OutputImageType_extract;*

I want to read a 3D image of short format and get my result also in short
format. I want to ask what type of file I must use, as a png image can't
display images of short format. Also, what should be changed in the above
declarations?

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110605/9794196b/attachment.htm>


More information about the Insight-users mailing list