21 #include <itkGDCMImageIO.h> 23 #include <itksys/SystemTools.hxx> 29 std::vector<CustomMimeType *> mimeTypes;
62 if (!itksys::SystemTools::FileExists(path.c_str()))
69 itk::GDCMImageIO::Pointer gdcmIO = itk::GDCMImageIO::New();
70 canRead = gdcmIO->CanReadFile(path.c_str());
82 relevantFiles.push_back(path);
84 scanner->AddTag(siemensCESTprivateTag);
85 scanner->SetInputFiles(relevantFiles);
87 mitk::DICOMTagCache::Pointer tagCache = scanner->GetScanCache();
92 std::string byteString = tagCache->GetTagValue(firstFrame, siemensCESTprivateTag).value;
94 if (byteString.empty()) {
101 bool mapNotEmpty = parsedPropertyList->GetMap()->size() > 0;
static MitkCESTDicomMimeType CEST_DICOM_MIMETYPE()
Representation of a DICOM tag.
DataCollection - Class to facilitate loading/accessing structured data.
bool AppliesTo(const std::string &path) const override
Checks if the MimeType can handle file at the given location.
virtual bool AppliesTo(const std::string &path) const
Checks if the MimeType can handle file at the given location.
mitk::PropertyList::Pointer ParseDicomPropertyString(std::string dicomPropertyString)
parse the provided string and return a property list based on the closest revision parameter mapping ...
void SetComment(const std::string &comment)
Describes a frame within a DICOM file.
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
static std::string CATEGORY_IMAGES()
static std::string DEFAULT_BASE_NAME()
static std::string CEST_DICOM_MIMETYPE_NAME()
std::vector< DICOMImageFrameInfo::Pointer > DICOMImageFrameList
void AddExtension(const std::string &extension)
std::vector< std::string > StringList
MITKDICOMREADER_EXPORT mitk::DICOMImageFrameList ConvertToDICOMImageFrameList(const DICOMDatasetAccessingImageFrameList &input)
void SetCategory(const std::string &category)
static std::vector< CustomMimeType * > Get()
MitkCESTDicomMimeType * Clone() const override