X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FitkOptMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx;h=dec3acff0b59f079ae9922cd8828cdd057eb0941;hb=708d54d5e20748be17ff444499920a8fc31de8fd;hp=f55b19a5556d1d76c343babb15e80f610b6ec117;hpb=d0bf1f6de5086e58c5bbefcee178609763790f61;p=clitk.git diff --git a/registration/itkOptMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx b/registration/itkOptMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx index f55b19a..dec3acf 100644 --- a/registration/itkOptMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx +++ b/registration/itkOptMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx @@ -44,8 +44,8 @@ PURPOSE. See the above copyright notices for more information. #include "vnl/vnl_math.h" #include "itkStatisticsImageFilter.h" -#include "vnl/vnl_vector.txx" -#include "vnl/vnl_c_vector.txx" +#include "vnl/vnl_vector.h" +#include "vnl/vnl_c_vector.h" namespace itk { @@ -630,9 +630,6 @@ MattesMutualInformationImageToImageMetricFor3DBLUTFFD { // Set up the parameters in the transform this->m_Transform->SetParameters( parameters ); -#if ITK_VERSION_MAJOR < 4 - this->m_Parameters = parameters; -#endif // MUST BE CALLED TO INITIATE PROCESSING this->GetValueMultiThreadedInitiate(); @@ -941,9 +938,6 @@ MattesMutualInformationImageToImageMetricFor3DBLUTFFD // Set up the parameters in the transform this->m_Transform->SetParameters( parameters ); -#if ITK_VERSION_MAJOR < 4 - this->m_Parameters = parameters; -#endif // MUST BE CALLED TO INITIATE PROCESSING ON SAMPLES this->GetValueAndDerivativeMultiThreadedInitiate(); @@ -1156,13 +1150,8 @@ MattesMutualInformationImageToImageMetricFor3DBLUTFFD transform = this->m_Transform; } -#if ITK_VERSION_MAJOR >= 4 JacobianType jacobian; transform->ComputeJacobianWithRespectToParameters(this->m_FixedImageSamples[sampleNumber].point, jacobian); -#else - const JacobianType& jacobian = - transform->GetJacobian( this->m_FixedImageSamples[sampleNumber].point ); -#endif // for ( unsigned int mu = 0; mu < this->m_NumberOfParameters; mu++ ) // { @@ -1230,15 +1219,9 @@ MattesMutualInformationImageToImageMetricFor3DBLUTFFD indicesHelper = &(this->m_BSplineTransformIndices); } -#if ITK_VERSION_MAJOR >= 4 this->m_BSplineTransform->ComputeJacobianFromBSplineWeightsWithRespectToPosition( this->m_FixedImageSamples[sampleNumber].point, *weightsHelper, *indicesHelper ); -#else - this->m_BSplineTransform->GetJacobian( - this->m_FixedImageSamples[sampleNumber].point, - *weightsHelper, *indicesHelper ); -#endif } for( unsigned int dim = 0; dim < Superclass::FixedImageDimension; dim++ ) {