From 40d5488d521a48fa1bd6dfb1dd45817495ac0b83 Mon Sep 17 00:00:00 2001 From: Dominique Belhachemi Date: Sun, 3 Nov 2013 19:34:44 -0500 Subject: [PATCH] COMP: rename GetJacobian() to make transform ITKv4 compliant --- Libs/vtkITK/vtkITKBSplineTransform.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Libs/vtkITK/vtkITKBSplineTransform.cxx b/Libs/vtkITK/vtkITKBSplineTransform.cxx index ad1fa60c1..e0775feb4 100644 --- a/Libs/vtkITK/vtkITKBSplineTransform.cxx +++ b/Libs/vtkITK/vtkITKBSplineTransform.cxx @@ -844,7 +844,8 @@ ForwardTransformDerivativeHelper( vtkITKBSplineTransformHelperImpl* helper, out[1] = -out[1]; } - typename BSplineType::JacobianType jacobian = helper->BSpline->GetJacobian( inputPoint ); + typename BSplineType::JacobianType jacobian; + helper->BSpline->ComputeJacobianWithRespectToParameters( inputPoint, jacobian ); for( unsigned i=0; i<3; ++i ) { derivative[i][0] = static_cast( jacobian( i, 0 ) ); @@ -976,7 +977,8 @@ InverseTransformDerivativeHelper( vtkITKBSplineTransformHelperImpl* helper, pt[1] = -pt[1]; } - JacobianType const& jacobian = helper->BSpline->GetJacobian( pt ); + JacobianType jacobian; + helper->BSpline->ComputeJacobianWithRespectToParameters( pt, jacobian ); for( unsigned i=0; i<3; ++i ) { derivative[i][0] = static_cast( jacobian( i, 0 ) ); -- GitLab