20 DcmIoType::Pointer &io,
24 switch (io->GetComponentType())
26 case DcmIoType::UCHAR:
27 return LoadDICOMByITK<itk::RGBPixel<unsigned char>>(
28 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
30 return LoadDICOMByITK<itk::RGBPixel<char>>(filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
31 case DcmIoType::USHORT:
32 return LoadDICOMByITK<itk::RGBPixel<unsigned short>>(
33 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
34 case DcmIoType::SHORT:
35 return LoadDICOMByITK<itk::RGBPixel<short>>(filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
37 return LoadDICOMByITK<itk::RGBPixel<unsigned int>>(
38 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
40 return LoadDICOMByITK<itk::RGBPixel<int>>(filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
41 case DcmIoType::ULONG:
42 return LoadDICOMByITK<itk::RGBPixel<long unsigned int>>(
43 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
45 return LoadDICOMByITK<itk::RGBPixel<long int>>(
46 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
47 case DcmIoType::FLOAT:
48 return LoadDICOMByITK<itk::RGBPixel<float>>(filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
49 case DcmIoType::DOUBLE:
50 return LoadDICOMByITK<itk::RGBPixel<double>>(
51 filenames, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
53 MITK_ERROR <<
"Found unsupported DICOM scalar pixel type: (enum value) " << io->GetComponentType();
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.