[clitk-commits-list] Clitk branch master updated. v1.2.0-697-g0721574

root root at tux.creatis.insa-lyon.fr
Mon Feb 13 17:12:41 CET 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Clitk".

The branch, master has been updated
       via  0721574dfb0afb4077edab558c03963b316c5ff0 (commit)
      from  db1e29b00e5b2ca2b20533fa882e624ebba93a7f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.creatis.insa-lyon.fr/pubgit/?p=clitk.git;a=commitdiff;h=0721574dfb0afb4077edab558c03963b316c5ff0

commit 0721574dfb0afb4077edab558c03963b316c5ff0
Author: Romulo Pinho <romulo.pinho at lyon.unicancer.fr>
Date:   Mon Feb 13 17:12:28 2012 +0100

    itk4 compatibility

diff --git a/registration/clitkConvertBLUTCoeffsToVFFilter.txx b/registration/clitkConvertBLUTCoeffsToVFFilter.txx
index e103424..8665993 100644
--- a/registration/clitkConvertBLUTCoeffsToVFFilter.txx
+++ b/registration/clitkConvertBLUTCoeffsToVFFilter.txx
@@ -149,7 +149,12 @@ namespace clitk
       typedef clitk::VectorImageToImageFilter<BLUTCoefficientImageType, typename ITKTransformType::ImageType> FilterType;
       typename FilterType::Pointer component_filter[BLUTCoefficientImageType::ImageDimension];
 
+#if ITK_VERSION_MAJOR >= 4
+      typename ITKTransformType::CoefficientImageArray coefficient_images;
+#else
       typename ITKTransformType::ImagePointer coefficient_images[BLUTCoefficientImageType::ImageDimension];
+#endif
+
       for (unsigned int i=0; i < BLUTCoefficientImageType::ImageDimension; i++) {
           component_filter[i] = FilterType::New();
           component_filter[i]->SetInput(input);
@@ -157,7 +162,11 @@ namespace clitk
           component_filter[i]->Update();
           coefficient_images[i] = component_filter[i]->GetOutput();
       }
+#if ITK_VERSION_MAJOR >= 4
+      m_ITKTransform->SetCoefficientImages(coefficient_images);
+#else
       m_ITKTransform->SetCoefficientImage(coefficient_images);
+#endif
 
       m_GenericTransform = m_ITKTransform;
     }

-----------------------------------------------------------------------

Summary of changes:
 registration/clitkConvertBLUTCoeffsToVFFilter.txx |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Clitk


More information about the Clitk-commits-list mailing list