diff OrthancStone/Sources/Toolbox/DicomInstanceParameters.cpp @ 1772:6c246f862b00

unit test VolumeRendering.Basic
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 May 2021 17:24:24 +0200
parents 5f74ebe2516b
children 385c268e8b56
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/DicomInstanceParameters.cpp	Wed May 12 15:09:32 2021 +0200
+++ b/OrthancStone/Sources/Toolbox/DicomInstanceParameters.cpp	Wed May 12 17:24:24 2021 +0200
@@ -108,13 +108,17 @@
         !dicom.GetValue(Orthanc::DICOM_TAG_ROWS).ParseFirstUnsignedInteger(height_))
     {
       height_ = 0;
-     }
+    }
 
 
     bool sliceThicknessPresent = true;
     if (!dicom.ParseDouble(sliceThickness_, Orthanc::DICOM_TAG_SLICE_THICKNESS))
     {
-      LOG(INFO) << "The (non-madatory) slice thickness information is missing in a multiframe image";
+      if (numberOfFrames_ > 1)
+      {
+        LOG(INFO) << "The (non-madatory) slice thickness information is missing in a multiframe image";
+      }
+      
       sliceThickness_ = 100.0 * std::numeric_limits<double>::epsilon();
       sliceThicknessPresent = false;
     }