]> 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 d864900..a1241b5 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