diff Framework/Toolbox/DicomInstanceParameters.cpp @ 1353:af65bce18951 broker

Dummy commented debug block
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 15 Apr 2020 12:58:14 +0200
parents 257f2c9a02ac
children 30deba7bc8e2
line wrap: on
line diff
--- a/Framework/Toolbox/DicomInstanceParameters.cpp	Wed Apr 15 12:58:01 2020 +0200
+++ b/Framework/Toolbox/DicomInstanceParameters.cpp	Wed Apr 15 12:58:14 2020 +0200
@@ -387,6 +387,21 @@
   TextureBaseSceneLayer* DicomInstanceParameters::CreateTexture
   (const Orthanc::ImageAccessor& pixelData) const
   {
+    // {
+    //   const Orthanc::ImageAccessor& source = pixelData;
+    //   const void* sourceBuffer = source.GetConstBuffer();
+    //   intptr_t sourceBufferInt = reinterpret_cast<intptr_t>(sourceBuffer);
+    //   int sourceWidth = source.GetWidth();
+    //   int sourceHeight = source.GetHeight();
+    //   int sourcePitch = source.GetPitch();
+
+    //   // TODO: turn error into trace below
+    //   LOG(ERROR) << "ConvertGrayscaleToFloat | source:"
+    //     << " W = " << sourceWidth << " H = " << sourceHeight
+    //     << " P = " << sourcePitch << " B = " << sourceBufferInt
+    //     << " B % 4 == " << sourceBufferInt % 4;
+    // }
+
     assert(sizeof(float) == 4);
 
     Orthanc::PixelFormat sourceFormat = pixelData.GetFormat();