andon | 19 Jun 2012 16:09
Picon

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)

andon | 20 Jun 2012 10:04
Picon

Re: itk reading dicom series with multiframe and singleframe


No one can help me???

andon wrote:
> 
> 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;
(Continue reading)


Gmane