comparison Framework/Toolbox/OrthancSlicesLoader.cpp @ 334:c34784e5f299 am-2

compatibility fixes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Oct 2018 09:02:24 +0200
parents 3a4ca166fafa
children c2e040ea8fbe
comparison
equal deleted inserted replaced
333:08683537a227 334:c34784e5f299
550 // Decode a grayscale JPEG 8bpp image coming from the Web viewer 550 // Decode a grayscale JPEG 8bpp image coming from the Web viewer
551 boost::shared_ptr<Orthanc::ImageAccessor> image 551 boost::shared_ptr<Orthanc::ImageAccessor> image
552 (new Orthanc::Image(expectedFormat, reader->GetWidth(), reader->GetHeight(), false)); 552 (new Orthanc::Image(expectedFormat, reader->GetWidth(), reader->GetHeight(), false));
553 553
554 Orthanc::ImageProcessing::Convert(*image, *reader); 554 Orthanc::ImageProcessing::Convert(*image, *reader);
555 reader = NULL; 555 reader.reset();
556 556
557 float scaling = static_cast<float>(stretchHigh - stretchLow) / 255.0f; 557 float scaling = static_cast<float>(stretchHigh - stretchLow) / 255.0f;
558 558
559 if (!LinearAlgebra::IsCloseToZero(scaling)) 559 if (!LinearAlgebra::IsCloseToZero(scaling))
560 { 560 {