X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FitkOptMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx;h=9f717668e4d79e068e67099dc7a432aa68847953;hb=8d51bd1cb7e9ca416b46677dcd73ba76d107a587;hp=ef4257e6c66f0525a8c15806923a0aaead195ae2;hpb=71511076230b1d0a60a638c2c1b6577a34116e02;p=clitk.git diff --git a/registration/itkOptMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx b/registration/itkOptMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx index ef4257e..9f71766 100644 --- a/registration/itkOptMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx +++ b/registration/itkOptMattesMutualInformationImageToImageMetricFor3DBLUTFFD.txx @@ -768,9 +768,9 @@ MattesMutualInformationImageToImageMetricFor3DBLUTFFD // check for non-zero bin contribution if( jointPDFValue > 1e-16 && movingImagePDFValue > 1e-16 ) { - double pRatio = vcl_log(jointPDFValue / movingImagePDFValue ); + double pRatio = std::log(jointPDFValue / movingImagePDFValue ); if( fixedImagePDFValue > 1e-16) { - sum += jointPDFValue * ( pRatio - vcl_log(fixedImagePDFValue ) ); + sum += jointPDFValue * ( pRatio - std::log(fixedImagePDFValue ) ); } } // end if-block to check non-zero bin contribution @@ -1093,10 +1093,10 @@ MattesMutualInformationImageToImageMetricFor3DBLUTFFD // check for non-zero bin contribution if( jointPDFValue > 1e-16 && movingImagePDFValue > 1e-16 ) { - double pRatio = vcl_log(jointPDFValue / movingImagePDFValue ); + double pRatio = std::log(jointPDFValue / movingImagePDFValue ); if( fixedImagePDFValue > 1e-16) { - sum += jointPDFValue * ( pRatio - vcl_log(fixedImagePDFValue ) ); + sum += jointPDFValue * ( pRatio - std::log(fixedImagePDFValue ) ); } if( this->m_UseExplicitPDFDerivatives ) {