19 Jun 2012 16:09
itk reading dicom series with multiframe and singleframe
Hi all,
I'm quite new to itk, but i'm loving this library. Now i got a problem. I
need to read a cardiac dicom series. It contains both multiframe and
singleframe dicom. If i use the normal code, i got an error telling me that
the sizes of multiframe dicoms are not regular. This is the code i use:
const unsigned int InputDimension = 3;
const unsigned int OutputDimension = 3;
typedef signed short PixelType;
typedef itk::Image< PixelType, InputDimension >
InputImageType;
typedef itk::Image< PixelType, 2 >
InputImageType2;
typedef itk::Image< PixelType, OutputDimension >
OutputImageType;
typedef itk::ImageSeriesReader< InputImageType >
ReaderType;
typedef itk::ImageFileReader< InputImageType2 >
ReaderType2;
typedef itk::GDCMImageIO
ImageIOType;
typedef itk::GDCMSeriesFileNames
InputNamesGeneratorType;
////////////////////////////////////////////////
// 1) Read the input series
(Continue reading)
RSS Feed