Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Toolbox/DicomStructureSet2.cpp @ 1751:946eb7200b82
FastParseVector usage + timing instrumentation guarded by STONE_TIME_BLOCKING_OPS
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 22 Feb 2021 14:57:01 +0100 |
parents | 9ac2a65d4172 |
children | 126522623e20 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/DicomStructureSet2.cpp Mon Feb 22 14:56:06 2021 +0100 +++ b/OrthancStone/Sources/Toolbox/DicomStructureSet2.cpp Mon Feb 22 14:57:01 2021 +0100 @@ -71,7 +71,7 @@ { std::string value; return (dataset.GetStringValue(value, tag) && - LinearAlgebra::ParseVector(target, value)); + GenericToolbox::FastParseVector(target, value)); } @@ -271,7 +271,7 @@ std::string slicesData = reader.GetMandatoryStringValue(contourDataPath); Vector points; - if (!LinearAlgebra::ParseVector(points, slicesData) || + if (!GenericToolbox::FastParseVector(points, slicesData) || points.size() != 3 * countPoints) { throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat);