29 switch (io->GetComponentType())
31 case DcmIoType::UCHAR:
32 return LoadDICOMByITK4D<unsigned char>(
33 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
35 return LoadDICOMByITK4D<char>(
36 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
37 case DcmIoType::USHORT:
38 return LoadDICOMByITK4D<unsigned short>(
39 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
40 case DcmIoType::SHORT:
41 return LoadDICOMByITK4D<short>(
42 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
44 return LoadDICOMByITK4D<unsigned int>(
45 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
47 return LoadDICOMByITK4D<int>(
48 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
49 case DcmIoType::ULONG:
50 return LoadDICOMByITK4D<long unsigned int>(
51 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
53 return LoadDICOMByITK4D<long int>(
54 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
55 case DcmIoType::FLOAT:
56 return LoadDICOMByITK4D<float>(
57 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
58 case DcmIoType::DOUBLE:
59 return LoadDICOMByITK4D<double>(
60 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
62 MITK_ERROR <<
"Found unsupported DICOM scalar pixel type: (enum value) " << io->GetComponentType();
itk::SmartPointer< Self > Pointer
static itk::SmartPointer< Image > MultiplexLoadDICOMByITK4DScalar(std::list< StringContainer > &imageBlocks, ImageBlockDescriptor imageBlockDescriptor, bool correctTilt, const GantryTiltInformation &tiltInfo, DcmIoType::Pointer &io, CallbackCommand *command, itk::SmartPointer< Image > preLoadedImageBlock)
Return type of GetSeries, describes a logical group of files.
DataCollection - Class to facilitate loading/accessing structured data.
Progress callback for DicomSeriesReader.