Dicom Loader with ITK

Hello ITK | | ITK Image Size

As the next ITK example we simply load a series of DICOM images into memory.

For that purpose, we insert the following lines into the previous ITK example to load a Dicom series into the already created volume:

#include "itkImageFileReader.h"

typedef itk::ImageFileReader<Image3DType> ReaderType;
ReaderType::Pointer reader = ReaderType::New();

Note that the input image is a single file not a series. If the input format is Dicom, the input image needs to contain the series as a multi-frame dicom image (e.g. Angio.dcm).

The data is only loaded upon request, so we first need to pull the pipeline at the tail, so that data is pushed into the head of the pipeline:

reader->Update(); // pull trigger

Hello ITK | | ITK Image Size