Mercurial > hg > orthanc-stone
comparison Framework/Messaging/MessagingToolbox.cpp @ 11:4b7e0244881f
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 Oct 2016 12:14:03 +0200 |
parents | 351ab0da0150 |
children | ff1e935768e7 |
comparison
equal
deleted
inserted
replaced
10:55407926aac3 | 11:4b7e0244881f |
---|---|
411 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | 411 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); |
412 } | 412 } |
413 | 413 |
414 // Decode a grayscale JPEG 8bpp image coming from the Web viewer | 414 // Decode a grayscale JPEG 8bpp image coming from the Web viewer |
415 std::auto_ptr<Orthanc::ImageAccessor> image | 415 std::auto_ptr<Orthanc::ImageAccessor> image |
416 (new Orthanc::Image(targetFormat, reader->GetWidth(), reader->GetHeight())); | 416 (new Orthanc::Image(targetFormat, reader->GetWidth(), reader->GetHeight(), false)); |
417 | 417 |
418 float scaling = static_cast<float>(stretchHigh - stretchLow) / 255.0f; | 418 float scaling = static_cast<float>(stretchHigh - stretchLow) / 255.0f; |
419 float offset = static_cast<float>(stretchLow) / scaling; | 419 float offset = static_cast<float>(stretchLow) / scaling; |
420 | 420 |
421 Orthanc::ImageProcessing::Convert(*image, *reader); | 421 Orthanc::ImageProcessing::Convert(*image, *reader); |