]> Creatis software - clitk.git/commitdiff
Fixed MatrixTransformToVF's option "--like" with ITK > 4.6
authorCyril Mory <you@example.com>
Wed, 10 Jun 2015 09:13:18 +0000 (11:13 +0200)
committerCyril Mory <you@example.com>
Wed, 10 Jun 2015 09:13:18 +0000 (11:13 +0200)
registration/clitkMatrixTransformToVFGenericFilter.txx

index d864900c0cc0d37a6d299d000634300fe818717c..a1241b5358cc06a0ab63065be57a2f41134c0bfe 100644 (file)
@@ -101,6 +101,7 @@ namespace clitk
        typename OutputImageType::Pointer image=reader2->GetOutput();
 #if ITK_VERSION_MAJOR > 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR >= 6)
     filter->SetReferenceImage(image);
+    filter->UseReferenceImageOn();
 #else
     filter->SetOutputParametersFromImage(image);
 #endif