diff 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
line wrap: on
line diff
--- a/Framework/DicomizerParameters.cpp	Fri Jul 12 09:06:54 2019 +0200
+++ b/Framework/DicomizerParameters.cpp	Fri Jul 12 12:00:31 2019 +0200
@@ -156,12 +156,6 @@
   unsigned int DicomizerParameters::GetPyramidLevelsCount(const IPyramidWriter& target,
                                                           const ITiledPyramid& source) const
   {
-    if (!reconstructPyramid_)
-    {
-      // Only makes sense if reconstructing the pyramid
-      throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
-    }
-
     if (pyramidLevelsCount_ != 0)
     {
       return pyramidLevelsCount_;
@@ -205,12 +199,6 @@
   unsigned int DicomizerParameters::GetPyramidLowerLevelsCount(const IPyramidWriter& target,
                                                                const ITiledPyramid& source) const
   {
-    if (!reconstructPyramid_)
-    {
-      // Only makes sense if reconstructing the pyramid
-      throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);
-    }
-
     if (pyramidLowerLevelsCount_ != 0)
     {
       return pyramidLowerLevelsCount_;