X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkOptNormalizedCorrelationImageToImageMetric.txx;h=0f8fa64c5d975dbb3c4083e6699e2dd7bc91bc2d;hb=708d54d5e20748be17ff444499920a8fc31de8fd;hp=ea5d9a5d048dfb88824865a53700ef3f8a6e39a0;hpb=e1098dccba022441144bfc1c44a2b58db7dde34e;p=clitk.git diff --git a/registration/clitkOptNormalizedCorrelationImageToImageMetric.txx b/registration/clitkOptNormalizedCorrelationImageToImageMetric.txx index ea5d9a5..0f8fa64 100644 --- a/registration/clitkOptNormalizedCorrelationImageToImageMetric.txx +++ b/registration/clitkOptNormalizedCorrelationImageToImageMetric.txx @@ -219,7 +219,6 @@ NormalizedCorrelationImageToImageMetric // Set up the parameters in the transform this->m_Transform->SetParameters( parameters ); - this->m_Parameters = parameters; // MUST BE CALLED TO INITIATE PROCESSING this->GetValueMultiThreadedInitiate(); @@ -294,7 +293,6 @@ NormalizedCorrelationImageToImageMetric // Set up the parameters in the transform this->m_Transform->SetParameters( parameters ); - this->m_Parameters = parameters; // MUST BE CALLED TO INITIATE PROCESSING this->GetValueMultiThreadedInitiate(); @@ -381,8 +379,8 @@ NormalizedCorrelationImageToImageMetric } // Jacobian should be evaluated at the unmapped (fixed image) point. - const TransformJacobianType & jacobian = transform - ->GetJacobian( fixedImagePoint ); + TransformJacobianType jacobian; + transform->ComputeJacobianWithRespectToParameters(fixedImagePoint, jacobian); for(unsigned int par=0; parm_NumberOfParameters; par++) { RealType sumF = itk::NumericTraits< RealType >::Zero; @@ -422,7 +420,6 @@ NormalizedCorrelationImageToImageMetric // Set up the parameters in the transform this->m_Transform->SetParameters( parameters ); - this->m_Parameters = parameters; //We need the sums and the value to be calculated first value=this->ComputeSums(parameters);