From f148613469fb219799748a39b2d20cc93f1ace20 Mon Sep 17 00:00:00 2001 From: J-Donald Tournier Date: Tue, 26 Nov 2024 15:27:22 +0000 Subject: [PATCH] DICOM: ignore image positioning tags if nested within Philips private sequence As discussed in #2977 --- core/file/dicom/image.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/file/dicom/image.cpp b/core/file/dicom/image.cpp index 4d3b8226f4..efaeff1e72 100644 --- a/core/file/dicom/image.cpp +++ b/core/file/dicom/image.cpp @@ -158,6 +158,10 @@ namespace MR { } return; case 0x0020U: + for (const auto& p : item.parents) + if (p.group == 0x2005) + return; // ignore if nested within Philips private sequence + switch (item.element) { case 0x000EU: ignore_series_num = item.is_in_series_ref_sequence();