[Insight-users] itkOptLinearInterpolateImageFunction problem

Benhacene Boudan Mustafa m.benhacene.boudan at umontreal.ca
Wed Dec 10 15:29:04 EST 2008


Hi,

When i try to replace itkLinearInterpolateImageFunction by itkOptLinearInterpolateImageFunction in my program i have that error : 



In file included from /home/karim/InsightToolkit-3.10.1/Code/Review/itkOptLinearInterpolateImageFunction.txx:20,
                 from /home/karim/InsightToolkit-3.10.1/Code/Review/itkOptLinearInterpolateImageFunction.h:390,
                 from /home/karim/4D/elastic/BSbgo.cxx:27:
/home/karim/InsightToolkit-3.10.1/Code/Common/itkLinearInterpolateImageFunction.h:52: erreur: redefinition of default argument for «class TCoordRep»
/home/karim/InsightToolkit-3.10.1/Code/Review/itkOptLinearInterpolateImageFunction.h:42: erreur:   définition originale apparaît ici
In file included from /home/karim/InsightToolkit-3.10.1/Code/Common/itkLinearInterpolateImageFunction.h:125,
                 from /home/karim/InsightToolkit-3.10.1/Code/Review/itkOptLinearInterpolateImageFunction.txx:20,
                 from /home/karim/InsightToolkit-3.10.1/Code/Review/itkOptLinearInterpolateImageFunction.h:390,
                 from /home/karim/4D/elastic/BSbgo.cxx:27:
/home/karim/InsightToolkit-3.10.1/Code/Common/itkLinearInterpolateImageFunction.txx:78: erreur: redefinition of «typename itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::OutputType itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::EvaluateAtContinuousIndex(const typename itk::InterpolateImageFunction<TImageType, TCoordRep>::ContinuousIndexType&) const»
/home/karim/InsightToolkit-3.10.1/Code/Review/itkOptLinearInterpolateImageFunction.h:87: erreur: «virtual typename itk::InterpolateImageFunction<TImageType, TCoordRep>::OutputType itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::EvaluateAtContinuousIndex(const typename itk::InterpolateImageFunction<TImageType, TCoordRep>::ContinuousIndexType&) const» previously declared here
In file included from /home/karim/InsightToolkit-3.10.1/Code/Review/itkOptLinearInterpolateImageFunction.h:390,
                 from /home/karim/4D/elastic/BSbgo.cxx:27:
/home/karim/InsightToolkit-3.10.1/Code/Review/itkOptLinearInterpolateImageFunction.txx:33: erreur: redefinition of «const long unsigned int itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::m_Neighbors»
/home/karim/InsightToolkit-3.10.1/Code/Common/itkLinearInterpolateImageFunction.txx:44: erreur: «const long unsigned int itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::m_Neighbors» previously declared here
/home/karim/InsightToolkit-3.10.1/Code/Review/itkOptLinearInterpolateImageFunction.txx:41: erreur: redefinition of «itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::LinearInterpolateImageFunction()»
/home/karim/InsightToolkit-3.10.1/Code/Common/itkLinearInterpolateImageFunction.txx:52: erreur: «itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::LinearInterpolateImageFunction()» previously declared here
/home/karim/InsightToolkit-3.10.1/Code/Review/itkOptLinearInterpolateImageFunction.txx:57: erreur: redefinition of «void itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::PrintSelf(std::ostream&, itk::Indent) const»
/home/karim/InsightToolkit-3.10.1/Code/Common/itkLinearInterpolateImageFunction.txx:64: erreur: «void itk::LinearInterpolateImageFunction<TInputImage, TCoordRep>::PrintSelf(std::ostream&, itk::Indent) const» previously declared here



In the same time i have no problem replacing itkBSplineInterpolateImageFunction by itkOptBSplineInterpolateImageFunction, any idea why?

thank you very much


karim




More information about the Insight-users mailing list