Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/FiniteProjectiveCamera.cpp @ 693:9a474e90e832
Fixed a bunch of truncation warnings in various parts of the library
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 17 May 2019 08:49:55 +0200 |
parents | 7719eb852dd5 |
children | c3bbb130abc4 |
comparison
equal
deleted
inserted
replaced
692:10910827f235 | 693:9a474e90e832 |
---|---|
358 ix /= pixelSpacing[0]; | 358 ix /= pixelSpacing[0]; |
359 iy /= pixelSpacing[1]; | 359 iy /= pixelSpacing[1]; |
360 | 360 |
361 // Read and accumulate the value of the pixel | 361 // Read and accumulate the value of the pixel |
362 float pixel; | 362 float pixel; |
363 if (pixelReader.GetFloatValue(pixel, ix, iy)) | 363 if (pixelReader.GetFloatValue( |
364 pixel, static_cast<float>(ix), static_cast<float>(iy))) | |
364 { | 365 { |
365 if (MIP) | 366 if (MIP) |
366 { | 367 { |
367 // MIP rendering | 368 // MIP rendering |
368 if (*qcount == 0) | 369 if (*qcount == 0) |