# HG changeset patch # User Sebastien Jodogne # Date 1688998934 -7200 # Node ID a6e4834ac1414a7e0c086ef210c6b67bc5e8d13a # Parent fb689ed55c099ceefcb58d02fa5ff1af8594bf59 added some tolerance in the PerFrameFunctionalGroupsSequence tag diff -r fb689ed55c09 -r a6e4834ac141 Framework/Inputs/DicomPyramidInstance.cpp --- a/Framework/Inputs/DicomPyramidInstance.cpp Mon Jul 10 16:14:42 2023 +0200 +++ b/Framework/Inputs/DicomPyramidInstance.cpp Mon Jul 10 16:22:14 2023 +0200 @@ -190,7 +190,7 @@ throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat); } - frames_.resize(countFrames); + frames_.reserve(countFrames); for (size_t i = 0; i < countFrames; i++) { @@ -225,11 +225,11 @@ { LOG(ERROR) << "Frame " << i << " with unexpected tile location (" << x << "," << y << ") in instance: " << instanceId; - throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat); } - - frames_[i].first = x / tileWidth_; - frames_[i].second = y / tileHeight_; + else + { + frames_.push_back(std::make_pair(x / tileWidth_, y / tileHeight_)); + } } } else