From: delmon Date: Thu, 14 Apr 2011 08:22:02 +0000 (+0000) Subject: itkv4 migration: X-Git-Tag: v1.2.0~41 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e217697bd9c921fe6dc060dcd9f1af0a2519422e;p=clitk.git itkv4 migration: + itk::BSplineTransform::GetCoefficientImage prototype changed, returning an array of images instead of a pointer to an image. (c-like table to itk::Array) --- diff --git a/registration/clitkBSplineDeformableRegistrationGenericFilter.txx b/registration/clitkBSplineDeformableRegistrationGenericFilter.txx index f76c8fa..8f399c0 100755 --- a/registration/clitkBSplineDeformableRegistrationGenericFilter.txx +++ b/registration/clitkBSplineDeformableRegistrationGenericFilter.txx @@ -677,7 +677,11 @@ namespace clitk { BSplineTransformPointer bsplineTransform=dynamic_cast(registration->GetTransform()); typedef itk::Image CoefficientImageType; +#if ITK_VERSION_MAJOR > 3 + typename BSplineTransformType::CoefficientImageArray coefficientImages = bsplineTransform->GetCoefficientImage(); +#else typename CoefficientImageType::Pointer *coefficientImages =bsplineTransform->GetCoefficientImage(); +#endif typedef itk::ImageFileWriter CoeffWriterType; for (unsigned int i=0;i