Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp @ 4137:6774605d4341
keep only one signature for FromDcmtkBridge::ExtractDicomSummary()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Aug 2020 17:38:55 +0200 |
parents | 2724977419fb |
children | 1a26daefc3fe |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp Thu Aug 06 15:55:03 2020 +0200 +++ b/OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp Thu Aug 06 17:38:55 2020 +0200 @@ -250,7 +250,8 @@ // See also: http://support.dcmtk.org/wiki/dcmtk/howto/accessing-compressed-data DicomMap m; - FromDcmtkBridge::ExtractDicomSummary(m, dataset, 0 /* don't truncate tags */); + std::set<DicomTag> ignoreTagLength; + FromDcmtkBridge::ExtractDicomSummary(m, dataset, ORTHANC_MAXIMUM_TAG_LENGTH, ignoreTagLength); /** * Create an accessor to the raw values of the DICOM image. @@ -322,7 +323,8 @@ bool ignorePhotometricInterpretation) { DicomMap m; - FromDcmtkBridge::ExtractDicomSummary(m, dataset, 0 /* don't truncate tags */); + std::set<DicomTag> ignoreTagLength; + FromDcmtkBridge::ExtractDicomSummary(m, dataset, ORTHANC_MAXIMUM_TAG_LENGTH, ignoreTagLength); DicomImageInformation info(m); PixelFormat format; @@ -602,7 +604,8 @@ } DicomMap m; - FromDcmtkBridge::ExtractDicomSummary(m, dataset, 0 /* don't truncate tags */); + std::set<DicomTag> ignoreTagLength; + FromDcmtkBridge::ExtractDicomSummary(m, dataset, ORTHANC_MAXIMUM_TAG_LENGTH, ignoreTagLength); DicomImageInformation info(m); std::unique_ptr<ImageAccessor> target(CreateImage(dataset, true));