Mercurial > hg > orthanc-stone
comparison Framework/Loaders/SeriesFramesLoader.cpp @ 1309:1f877e0846fe broker
Fixed some warnings + fixed build for C++03
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 04 Mar 2020 13:20:12 +0100 |
parents | c38c89684d83 |
children | 3d26447ddd28 |
comparison
equal
deleted
inserted
replaced
1308:adf234ecaa00 | 1309:1f877e0846fe |
---|---|
224 Orthanc::ImageProcessing::Convert(scaled, reader); | 224 Orthanc::ImageProcessing::Convert(scaled, reader); |
225 | 225 |
226 float w = payload.GetWindowingWidth(); | 226 float w = payload.GetWindowingWidth(); |
227 if (w <= 0.01f) | 227 if (w <= 0.01f) |
228 { | 228 { |
229 w = 0.01; // Prevent division by zero | 229 w = 0.01f; // Prevent division by zero |
230 } | 230 } |
231 | 231 |
232 const float c = payload.GetWindowingCenter(); | 232 const float c = payload.GetWindowingCenter(); |
233 const float scaling = w / 255.0f; | 233 const float scaling = w / 255.0f; |
234 const float offset = (c - w / 2.0f) / scaling; | 234 const float offset = (c - w / 2.0f) / scaling; |