]> Creatis software - clitk.git/commitdiff
itkv4 migration:
authordelmon <delmon>
Thu, 14 Apr 2011 08:22:02 +0000 (08:22 +0000)
committerdelmon <delmon>
Thu, 14 Apr 2011 08:22:02 +0000 (08:22 +0000)
+ itk::BSplineTransform::GetCoefficientImage prototype changed, returning an
array of images instead of a pointer to an image. (c-like table to itk::Array)

registration/clitkBSplineDeformableRegistrationGenericFilter.txx

index f76c8fad71d484ba61c27b1e1cbef75132394976..8f399c08beb2b711003112f8344eec2952382a1f 100755 (executable)
@@ -677,7 +677,11 @@ namespace clitk
          {
            BSplineTransformPointer bsplineTransform=dynamic_cast<BSplineTransformPointer>(registration->GetTransform());
            typedef  itk::Image<TCoordRep, ImageDimension> CoefficientImageType;
+#if ITK_VERSION_MAJOR > 3
+            typename BSplineTransformType::CoefficientImageArray coefficientImages = bsplineTransform->GetCoefficientImage();
+#else
            typename CoefficientImageType::Pointer *coefficientImages =bsplineTransform->GetCoefficientImage();
+#endif
            typedef itk::ImageFileWriter<CoefficientImageType> CoeffWriterType;
            for (unsigned int i=0;i<SpaceDimension; i ++)
              {