21 DcmIoType::Pointer &io,
25 switch (io->GetComponentType())
27 case DcmIoType::UCHAR:
28 return LoadDICOMByITK4D<itk::RGBPixel<unsigned char>>(
29 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
31 return LoadDICOMByITK4D<itk::RGBPixel<char>>(
32 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
33 case DcmIoType::USHORT:
34 return LoadDICOMByITK4D<itk::RGBPixel<unsigned short>>(
35 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
36 case DcmIoType::SHORT:
37 return LoadDICOMByITK4D<itk::RGBPixel<short>>(
38 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
40 return LoadDICOMByITK4D<itk::RGBPixel<unsigned int>>(
41 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
43 return LoadDICOMByITK4D<itk::RGBPixel<int>>(
44 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
45 case DcmIoType::ULONG:
46 return LoadDICOMByITK4D<itk::RGBPixel<long unsigned int>>(
47 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
49 return LoadDICOMByITK4D<itk::RGBPixel<long int>>(
50 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
51 case DcmIoType::FLOAT:
52 return LoadDICOMByITK4D<itk::RGBPixel<float>>(
53 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
54 case DcmIoType::DOUBLE:
55 return LoadDICOMByITK4D<itk::RGBPixel<double>>(
56 imageBlocks, imageBlockDescriptor, correctTilt, tiltInfo, io, command, preLoadedImageBlock);
58 MITK_ERROR <<
"Found unsupported DICOM scalar pixel type: (enum value) " << io->GetComponentType();
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.