comparison 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
comparison
equal deleted inserted replaced
1352:159708a38af4 1353:af65bce18951
385 385
386 386
387 TextureBaseSceneLayer* DicomInstanceParameters::CreateTexture 387 TextureBaseSceneLayer* DicomInstanceParameters::CreateTexture
388 (const Orthanc::ImageAccessor& pixelData) const 388 (const Orthanc::ImageAccessor& pixelData) const
389 { 389 {
390 // {
391 // const Orthanc::ImageAccessor& source = pixelData;
392 // const void* sourceBuffer = source.GetConstBuffer();
393 // intptr_t sourceBufferInt = reinterpret_cast<intptr_t>(sourceBuffer);
394 // int sourceWidth = source.GetWidth();
395 // int sourceHeight = source.GetHeight();
396 // int sourcePitch = source.GetPitch();
397
398 // // TODO: turn error into trace below
399 // LOG(ERROR) << "ConvertGrayscaleToFloat | source:"
400 // << " W = " << sourceWidth << " H = " << sourceHeight
401 // << " P = " << sourcePitch << " B = " << sourceBufferInt
402 // << " B % 4 == " << sourceBufferInt % 4;
403 // }
404
390 assert(sizeof(float) == 4); 405 assert(sizeof(float) == 4);
391 406
392 Orthanc::PixelFormat sourceFormat = pixelData.GetFormat(); 407 Orthanc::PixelFormat sourceFormat = pixelData.GetFormat();
393 408
394 if (sourceFormat != GetExpectedPixelFormat()) 409 if (sourceFormat != GetExpectedPixelFormat())