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);
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;
}