28 switch (io->GetComponentType())
30 case DcmIoType::UCHAR:
31 return LoadDICOMByITK<itk::RGBPixel<unsigned char>>(
32 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
34 return LoadDICOMByITK<itk::RGBPixel<char>>(filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
35 case DcmIoType::USHORT:
36 return LoadDICOMByITK<itk::RGBPixel<unsigned short>>(
37 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
38 case DcmIoType::SHORT:
39 return LoadDICOMByITK<itk::RGBPixel<short>>(filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
41 return LoadDICOMByITK<itk::RGBPixel<unsigned int>>(
42 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
44 return LoadDICOMByITK<itk::RGBPixel<int>>(filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
45 case DcmIoType::ULONG:
46 return LoadDICOMByITK<itk::RGBPixel<long unsigned int>>(
47 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
49 return LoadDICOMByITK<itk::RGBPixel<long int>>(
50 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
51 case DcmIoType::FLOAT:
52 return LoadDICOMByITK<itk::RGBPixel<float>>(filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
53 case DcmIoType::DOUBLE:
54 return LoadDICOMByITK<itk::RGBPixel<double>>(
55 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
57 MITK_ERROR <<
"Found unsupported DICOM scalar pixel type: (enum value) " << io->GetComponentType();
itk::SmartPointer< Self > Pointer
std::vector< std::string > StringContainer
Lists of filenames.
DataCollection - Class to facilitate loading/accessing structured data.
static itk::SmartPointer< Image > MultiplexLoadDICOMByITKRGBPixel(const StringContainer &, bool correctTilt, const GantryTiltInformation &tiltInfo, DcmIoType::Pointer &io, CallbackCommand *command, itk::SmartPointer< Image > preLoadedImageBlock)
Progress callback for DicomSeriesReader.