changeset 428:37d2459e3516

adding a FrameOfReferenceUID DICOM tag
author Alain Mazy <am@orthanc.team>
date Mon, 23 Feb 2026 09:58:35 +0100
parents f80f2d8a21e8
children e3bcacc581a1
files .hgignore Framework/Outputs/MultiframeDicomWriter.cpp NEWS
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Tue Jan 27 17:26:25 2026 +0100
+++ b/.hgignore	Mon Feb 23 09:58:35 2026 +0100
@@ -2,3 +2,4 @@
 ThirdPartyDownloads/
 *.orig
 *~
+.vscode/
--- a/Framework/Outputs/MultiframeDicomWriter.cpp	Tue Jan 27 17:26:25 2026 +0100
+++ b/Framework/Outputs/MultiframeDicomWriter.cpp	Mon Feb 23 09:58:35 2026 +0100
@@ -210,6 +210,7 @@
     DicomToolbox::SetUint16Tag(sharedTags_, DCM_HighBit, 7);
     DicomToolbox::SetUint16Tag(sharedTags_, DCM_PixelRepresentation, 0);   // Unsigned values
     DicomToolbox::SetStringTag(sharedTags_, DCM_PhotometricInterpretation, Orthanc::EnumerationToString(photometric));
+    DicomToolbox::SetStringTag(sharedTags_, DCM_FrameOfReferenceUID, Orthanc::FromDcmtkBridge::GenerateUniqueIdentifier(Orthanc::ResourceType_Instance));   // this is required for the measure tools to work in OHIF
 
     switch (pixelFormat)
     {
--- a/NEWS	Tue Jan 27 17:26:25 2026 +0100
+++ b/NEWS	Mon Feb 23 09:58:35 2026 +0100
@@ -1,6 +1,10 @@
 Pending changes in the mainline
 ===============================
 
+* OrthancWSIDicomizer:
+  - Now adding a FrameOfReferenceUID DICOM tag.  This is required, amongst others, 
+    by the measurement tools in the OHIF microscopy viewer.
+
 
 Version 3.3 (2025-11-06)
 ========================