Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Volumes/VolumeReslicer.cpp @ 1772:6c246f862b00
unit test VolumeRendering.Basic
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 May 2021 17:24:24 +0200 |
parents | 9ac2a65d4172 |
children | 95ece40bb298 |
comparison
equal
deleted
inserted
replaced
1771:f302bbddf94d | 1772:6c246f862b00 |
---|---|
457 ImageInterpolation interpolation, | 457 ImageInterpolation interpolation, |
458 bool hasLinearFunction, | 458 bool hasLinearFunction, |
459 float scaling, | 459 float scaling, |
460 float offset) | 460 float offset) |
461 { | 461 { |
462 if (source.GetFormat() == Orthanc::PixelFormat_Grayscale16 && | 462 if (source.GetFormat() == Orthanc::PixelFormat_Grayscale8 && |
463 slice.GetFormat() == Orthanc::PixelFormat_Grayscale8) | 463 slice.GetFormat() == Orthanc::PixelFormat_Grayscale8) |
464 { | |
465 ProcessImage<RowIterator, | |
466 Orthanc::PixelFormat_Grayscale8, | |
467 Orthanc::PixelFormat_Grayscale8> | |
468 (slice, extent, source, plane, box, interpolation, hasLinearFunction, scaling, offset); | |
469 } | |
470 else if (source.GetFormat() == Orthanc::PixelFormat_Grayscale16 && | |
471 slice.GetFormat() == Orthanc::PixelFormat_Grayscale8) | |
464 { | 472 { |
465 ProcessImage<RowIterator, | 473 ProcessImage<RowIterator, |
466 Orthanc::PixelFormat_Grayscale16, | 474 Orthanc::PixelFormat_Grayscale16, |
467 Orthanc::PixelFormat_Grayscale8> | 475 Orthanc::PixelFormat_Grayscale8> |
468 (slice, extent, source, plane, box, interpolation, hasLinearFunction, scaling, offset); | 476 (slice, extent, source, plane, box, interpolation, hasLinearFunction, scaling, offset); |