]> Creatis software - clitk.git/commitdiff
Compile with both itk3 and itk4
authorDavid Sarrut <david.sarrut@gmail.com>
Fri, 3 Feb 2012 06:57:12 +0000 (07:57 +0100)
committerDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Mon, 3 Jun 2013 11:40:15 +0000 (13:40 +0200)
itk/clitkExtractSliceFilter.txx

index a449388fbdca9516594dc425ecb5510b5087e9cf..e983be7c4dd3e96b28527c9d3ce13fabdc2c1f2f 100644 (file)
@@ -105,8 +105,11 @@ GenerateData() {
   m_size[GetDirection()] = 0;
   m_region.SetSize(m_size);
   int start = m_index[GetDirection()];
+#if ITK_VERSION_MAJOR >= 4
+  this->SetNumberOfIndexedInputs(m_NumberOfSlices);
+#else
   this->SetNumberOfOutputs(m_NumberOfSlices);
-  // deprecated : use SetNumberOfIndexedInputs ? FIXME
+#endif
 
   //--------------------------------------------------------------------
   // loop ExtractImageFilter with region updated, push_back