X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkPointListTransform.h;h=d98c525d6abd3c114454c6e4fccba22dfeec968e;hb=6ab0361c289035b4ba8487fe074ea9b268341da9;hp=9561f10d1ba5b13445a674ac7d3fb9a52c574488;hpb=47b13d7b1b389978ed3df0abb34039f5920115b4;p=clitk.git diff --git a/registration/clitkPointListTransform.h b/registration/clitkPointListTransform.h index 9561f10..d98c525 100644 --- a/registration/clitkPointListTransform.h +++ b/registration/clitkPointListTransform.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 __clitkPointListTransform_h #define __clitkPointListTransform_h #include "clitkList.h" @@ -117,11 +117,22 @@ namespace clitk return OutputCovariantVectorType(); } +#if ITK_VERSION_MAJOR >= 4 + virtual void ComputeJacobianWithRespectToParameters (const InputPointType &p, JacobianType &jacobian) const + { + itkExceptionMacro( << "PointListTransform doesn't declare ComputeJacobianWithRespectToParameters" ); + } + virtual void ComputeJacobianWithRespectToPosition (const InputPointType &p, JacobianType &jacobian) const + { + itkExceptionMacro( << "PointListTransform doesn't declare ComputeJacobianWithRespectToPosition" ); + } +#else virtual const JacobianType& GetJacobian(const InputPointType &point ) const { itkExceptionMacro( << "PointListTransform doesn't declare GetJacobian" ); return this->m_Jacobian; } +#endif protected: PointListTransform();