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