Mercurial > hg > orthanc-wsi
diff Framework/Inputs/DicomPyramid.cpp @ 330:c42083d50ddf
Added support for DICOM tag "Recommended Absent Pixel CIELab" (0048,0015)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 18 Oct 2024 13:08:55 +0200 |
parents | 0683312e21ba |
children |
line wrap: on
line diff
--- a/Framework/Inputs/DicomPyramid.cpp Fri Oct 18 08:48:53 2024 +0200 +++ b/Framework/Inputs/DicomPyramid.cpp Fri Oct 18 13:08:55 2024 +0200 @@ -103,8 +103,15 @@ (tokens[1] != "THUMBNAIL" && tokens[1] != "OVERVIEW")) { + if (instance->HasBackgroundColor()) + { + backgroundRed_ = instance->GetBackgroundRed(); + backgroundGreen_ = instance->GetBackgroundGreen(); + backgroundBlue_ = instance->GetBackgroundBlue(); + } + instances_.push_back(instance.release()); - } + } } catch (Orthanc::OrthancException&) { @@ -157,7 +164,10 @@ const std::string& seriesId, bool useCache) : orthanc_(orthanc), - seriesId_(seriesId) + seriesId_(seriesId), + backgroundRed_(255), + backgroundGreen_(255), + backgroundBlue_(255) { RegisterInstances(seriesId, useCache);