//Verify if the file is a RT-Structure-Set dicom file
if (!gdcm::Util::DicomStringEqual(mFile->GetEntryValue(0x0008,0x0016),"1.2.840.10008.5.1.4.1.1.481.3"))
return false;
- if (!gdcm::Util::DicomStringEqual(mFile->GetEntryValue(0x0008,0x0060),"RTSTRUCT")) return false;
+ if (!gdcm::Util::DicomStringEqual(mFile->GetEntryValue(0x0008,0x0060),"RTSTRUCT"))
+ return false;
+
+ return true;
#endif
}
else {
std::string s = m_MapOfTag[tag];
// Read the file
- image = readImage<ImageType>(GetPath()+"/"+s);
+ if (s[0] != '/')
+ image = readImage<ImageType>(GetPath() + "/" + s);
+ else
+ image = readImage<ImageType>(s);
// I add a reference count because the cache is not a smartpointer
image->SetReferenceCount(image->GetReferenceCount()+1);
// Insert into the cache