Mercurial > hg > orthanc-wsi
comparison Framework/Outputs/TruncatedPyramidWriter.cpp @ 166:f0dac1e8f736
access to photometric interpretation of source pyramids
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 12 Jul 2019 09:06:54 +0200 |
parents | 6b8ccfc02051 |
children | e3cbf890b588 |
comparison
equal
deleted
inserted
replaced
165:8c279c5b28a3 | 166:f0dac1e8f736 |
---|---|
25 #include <Core/OrthancException.h> | 25 #include <Core/OrthancException.h> |
26 | 26 |
27 namespace OrthancWSI | 27 namespace OrthancWSI |
28 { | 28 { |
29 TruncatedPyramidWriter::TruncatedPyramidWriter(IPyramidWriter& lower, | 29 TruncatedPyramidWriter::TruncatedPyramidWriter(IPyramidWriter& lower, |
30 unsigned int upperLevelIndex) : | 30 unsigned int upperLevelIndex, |
31 Orthanc::PhotometricInterpretation photometric) : | |
31 lowerLevels_(lower), | 32 lowerLevels_(lower), |
32 upperLevel_(lower.GetPixelFormat(), | 33 upperLevel_(lower.GetPixelFormat(), |
33 lower.GetCountTilesX(upperLevelIndex), | 34 lower.GetCountTilesX(upperLevelIndex), |
34 lower.GetCountTilesY(upperLevelIndex), | 35 lower.GetCountTilesY(upperLevelIndex), |
35 lower.GetTileWidth(), | 36 lower.GetTileWidth(), |
36 lower.GetTileHeight()), | 37 lower.GetTileHeight(), |
38 photometric), | |
37 upperLevelIndex_(upperLevelIndex) | 39 upperLevelIndex_(upperLevelIndex) |
38 { | 40 { |
39 if (upperLevelIndex > lower.GetLevelCount()) | 41 if (upperLevelIndex > lower.GetLevelCount()) |
40 { | 42 { |
41 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); | 43 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); |