diff Framework/Radiography/RadiographyScene.cpp @ 541:b336dfa71f12 dev

logs
author Alain Mazy <alain@mazy.be>
date Wed, 20 Mar 2019 10:11:53 +0100
parents ce49eae4c887
children 92305ee35b1c
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyScene.cpp	Tue Mar 19 14:43:46 2019 +0100
+++ b/Framework/Radiography/RadiographyScene.cpp	Wed Mar 20 10:11:53 2019 +0100
@@ -558,8 +558,6 @@
       throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
     }
 
-    LOG(INFO) << "Exporting DICOM";
-
     Extent2D extent = GetSceneExtent();
 
     int w = static_cast<int>(std::ceil(extent.GetWidth() / pixelSpacingX));
@@ -603,6 +601,9 @@
                                                     ImageInterpolation interpolation,
                                                     bool usePam)
   {
+    LOG(INFO) << "Exporting RadiographyScene to DICOM";
+    VLOG(1) << "Exporting RadiographyScene to: export to image";
+
     std::auto_ptr<Orthanc::Image> rendered(ExportToImage(pixelSpacingX, pixelSpacingY, interpolation)); // note: we don't invert the image in the pixels data because we'll set the PhotometricDisplayMode correctly in the DICOM tags
 
     std::string base64;
@@ -612,6 +613,7 @@
 
       if (usePam)
       {
+        VLOG(1) << "Exporting RadiographyScene: convert to PAM";
         Orthanc::PamWriter writer;
         writer.WriteToMemory(content, *rendered);
       }
@@ -621,6 +623,7 @@
         writer.WriteToMemory(content, *rendered);
       }
 
+      VLOG(1) << "Exporting RadiographyScene: encoding to base64";
       Orthanc::Toolbox::EncodeBase64(base64, content);
     }
 
@@ -667,6 +670,7 @@
       createDicomRequestContent["Parent"] = parentOrthancId;
     }
 
+    VLOG(1) << "Exporting RadiographyScene: create-dicom request is ready";
   }