Mercurial > hg > orthanc-stone
comparison Framework/Volumes/VolumeReslicer.cpp @ 171:01e32beee56c wasm
upgrade to cairo 1.14.12
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 06 Mar 2018 15:43:57 +0100 |
parents | 0a73d76333db |
children | 316324f42848 |
comparison
equal
deleted
inserted
replaced
170:0261909fa6f0 | 171:01e32beee56c |
---|---|
407 unsigned int sourceX, sourceY, sourceZ; | 407 unsigned int sourceX, sourceY, sourceZ; |
408 | 408 |
409 if (GetNearestCoordinates(sourceX, sourceY, sourceZ, worldX, worldY, worldZ)) | 409 if (GetNearestCoordinates(sourceX, sourceY, sourceZ, worldX, worldY, worldZ)) |
410 { | 410 { |
411 float f00, f10, f01, f11; | 411 float f00, f10, f01, f11; |
412 SampleVoxels(f00, f10, f01, f11, sourceX, sourceY, sourceZ); | 412 SampleVoxels(f00, f10, f01, f11, sourceX, sourceY, sourceZ); |
413 return GeometryToolbox::ComputeBilinearInterpolation(worldX, worldY, f00, f01, f10, f11); | 413 return GeometryToolbox::ComputeBilinearInterpolation(worldX, worldY, f00, f01, f10, f11); |
414 } | 414 } |
415 else | 415 else |
416 { | 416 { |
417 return outOfVolume_; | 417 return outOfVolume_; |