Mercurial > hg > orthanc-wsi
comparison Framework/DicomizerParameters.cpp @ 167:605247fc8758
Fix issue #144 (OrthancWSIDicomizer PhotometricInterpretation)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 12 Jul 2019 12:00:31 +0200 |
parents | 6b8ccfc02051 |
children | e3cbf890b588 |
comparison
equal
deleted
inserted
replaced
166:f0dac1e8f736 | 167:605247fc8758 |
---|---|
154 | 154 |
155 | 155 |
156 unsigned int DicomizerParameters::GetPyramidLevelsCount(const IPyramidWriter& target, | 156 unsigned int DicomizerParameters::GetPyramidLevelsCount(const IPyramidWriter& target, |
157 const ITiledPyramid& source) const | 157 const ITiledPyramid& source) const |
158 { | 158 { |
159 if (!reconstructPyramid_) | |
160 { | |
161 // Only makes sense if reconstructing the pyramid | |
162 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); | |
163 } | |
164 | |
165 if (pyramidLevelsCount_ != 0) | 159 if (pyramidLevelsCount_ != 0) |
166 { | 160 { |
167 return pyramidLevelsCount_; | 161 return pyramidLevelsCount_; |
168 } | 162 } |
169 | 163 |
203 | 197 |
204 | 198 |
205 unsigned int DicomizerParameters::GetPyramidLowerLevelsCount(const IPyramidWriter& target, | 199 unsigned int DicomizerParameters::GetPyramidLowerLevelsCount(const IPyramidWriter& target, |
206 const ITiledPyramid& source) const | 200 const ITiledPyramid& source) const |
207 { | 201 { |
208 if (!reconstructPyramid_) | |
209 { | |
210 // Only makes sense if reconstructing the pyramid | |
211 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); | |
212 } | |
213 | |
214 if (pyramidLowerLevelsCount_ != 0) | 202 if (pyramidLowerLevelsCount_ != 0) |
215 { | 203 { |
216 return pyramidLowerLevelsCount_; | 204 return pyramidLowerLevelsCount_; |
217 } | 205 } |
218 | 206 |