X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkDeformationFieldTransform.h;h=06c528855cdd8fb4ec09b24b8a97c164e8c9614d;hb=199c89545a8b0ea1ac7379213d359de00575d0a4;hp=038150173af4abc6aaa1ea7000c6ac75574a6f3c;hpb=47b13d7b1b389978ed3df0abb34039f5920115b4;p=clitk.git diff --git a/registration/clitkDeformationFieldTransform.h b/registration/clitkDeformationFieldTransform.h index 0381501..06c5288 100644 --- a/registration/clitkDeformationFieldTransform.h +++ b/registration/clitkDeformationFieldTransform.h @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef __clitkDeformationFieldTransform_h #define __clitkDeformationFieldTransform_h #include "clitkList.h" @@ -109,11 +109,22 @@ namespace clitk return OutputCovariantVectorType(); } +#if ITK_VERSION_MAJOR >= 4 + virtual void ComputeJacobianWithRespectToParameters (const InputPointType &p, JacobianType &jacobian) const + { + itkExceptionMacro( << "DeformationFieldTransform doesn't declare ComputeJacobianWithRespectToParameters" ); + } + virtual void ComputeJacobianWithRespectToPosition (const InputPointType &p, JacobianType &jacobian) const + { + itkExceptionMacro( << "DeformationFieldTransform doesn't declare ComputeJacobianWithRespectToPosition" ); + } +#else virtual const JacobianType& GetJacobian(const InputPointType &point ) const { itkExceptionMacro( << "DeformationFieldTransform doesn't declare GetJacobian" ); return this->m_Jacobian; } +#endif protected: DeformationFieldTransform();