From: David Sarrut Date: Fri, 3 Feb 2012 06:57:12 +0000 (+0100) Subject: Compile with both itk3 and itk4 X-Git-Tag: v1.4.0~229^2~16 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=13f714ac5d39785777cef3a7da2baa4f56ddaa91;p=clitk.git Compile with both itk3 and itk4 --- diff --git a/itk/clitkExtractSliceFilter.txx b/itk/clitkExtractSliceFilter.txx index a449388..e983be7 100644 --- a/itk/clitkExtractSliceFilter.txx +++ b/itk/clitkExtractSliceFilter.txx @@ -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