]> Creatis software - clitk.git/commitdiff
add exception if error
authordsarrut <dsarrut>
Wed, 15 Dec 2010 08:47:28 +0000 (08:47 +0000)
committerdsarrut <dsarrut>
Wed, 15 Dec 2010 08:47:28 +0000 (08:47 +0000)
common/clitkImageToImageGenericFilterBase.cxx

index ee9dcf8cb454164c73c76238542c547c35e7d19d..afb4ad1b4eaafbc628c62a12600f65a57c9bcb27 100644 (file)
@@ -149,8 +149,10 @@ void clitk::ImageToImageGenericFilterBase::GetInputImageDimensionAndPixelType(un
       pixeltype = m_InputVVImages[0]->GetScalarTypeAsITKString();
       dim = m_InputVVImages[0]->GetNumberOfDimensions();
       components = m_InputVVImages[0]->GetNumberOfScalarComponents();
-    } else
+    } else {
+      clitkExceptionMacro("No input given in this ImageToImageGenericFilter.");
       assert(false); //No input image, shouldn't happen
+    }
   }
   if (m_IOVerbose) {
     std::cout << "Input is " << m_Dim << "D " << m_PixelTypeName << "." << std::endl;