diff --git a/Code/BasicFilters/otbMeanShiftImageFilter.h b/Code/BasicFilters/otbMeanShiftImageFilter.h index 4de9423255c3499e10cade0dfb5fdce6d0f19a2d..564566f412e6120c19965d41382a3c9e6a0bf38d 100644 --- a/Code/BasicFilters/otbMeanShiftImageFilter.h +++ b/Code/BasicFilters/otbMeanShiftImageFilter.h @@ -66,21 +66,21 @@ class ITK_EXPORT MeanShiftImageFilter virtual void PrintSelf(std::ostream& os, itk::Indent indent) const; /** Redefinition of the GetNumberOfComponentsPerPixel() adapted for Image */ - virtual unsigned int GetNumberOfComponentsPerPixel(); + inline virtual unsigned int GetNumberOfComponentsPerPixel(); /** Redefinition of the InitValue() method adapted for Image * Please be aware that this function modifies the reference to value */ - virtual void InitValue(PrecisionPixelType & value, const unsigned int& nbComponents); + inline virtual void InitValue(PrecisionPixelType & value, const unsigned int& nbComponents); /** Redefinition of the SquaredNorm() method adapted for Image */ - virtual double SquaredNorm(const PrecisionPixelType& value); + inline virtual double SquaredNorm(const PrecisionPixelType& value); /** Redefinition of CastInputPixelToPrecisionPixel() method adapted form Image */ - virtual const PrecisionPixelType CastInputPixelToPrecisionPixel(const InputPixelType & pixel); + inline virtual const PrecisionPixelType CastInputPixelToPrecisionPixel(const InputPixelType & pixel); /** Redefinition of CastPrecisionPixelToOutputPixel() method adapted form Image */ - virtual const OutputPixelType CastPrecisionPixelToOutputPixel(const PrecisionPixelType & pixel); + inline virtual const OutputPixelType CastPrecisionPixelToOutputPixel(const PrecisionPixelType & pixel); private: MeanShiftImageFilter(const Self&); //purposely not implemented diff --git a/Code/BasicFilters/otbMeanShiftVectorImageFilter.h b/Code/BasicFilters/otbMeanShiftVectorImageFilter.h index 150398974b81054b69fdb79c3fa802138f174b04..6280dd65c1ec4fc39f5ce9287c0bad514f0a2eee 100644 --- a/Code/BasicFilters/otbMeanShiftVectorImageFilter.h +++ b/Code/BasicFilters/otbMeanShiftVectorImageFilter.h @@ -66,21 +66,21 @@ namespace otb virtual void PrintSelf(std::ostream& os, itk::Indent indent) const; /** Redefinition of the GetNumberOfComponentsPerPixel() adapted for VectorImages */ - virtual unsigned int GetNumberOfComponentsPerPixel(); + inline virtual unsigned int GetNumberOfComponentsPerPixel(); /** Redefinition of the InitValue() method adapted for vector images * Please be aware that this function modifies the reference to value */ - virtual void InitValue(PrecisionPixelType & value, const unsigned int& nbComponents); + inline virtual void InitValue(PrecisionPixelType & value, const unsigned int& nbComponents); /** Redefinition of the SquaredNorm() method adapted for vector images */ - virtual double SquaredNorm(const PrecisionPixelType & value); + inline virtual double SquaredNorm(const PrecisionPixelType & value); /** Redefinition of CastInputPixelToPrecisionPixel() method adapted form Image */ - virtual const PrecisionPixelType CastInputPixelToPrecisionPixel(const InputPixelType & pixel); + inline virtual const PrecisionPixelType CastInputPixelToPrecisionPixel(const InputPixelType & pixel); /** Redefinition of CastPrecisionPixelToOutputPixel() method adapted form Image */ - virtual const OutputPixelType CastPrecisionPixelToOutputPixel(const PrecisionPixelType & pixel); + inline virtual const OutputPixelType CastPrecisionPixelToOutputPixel(const PrecisionPixelType & pixel); private: MeanShiftVectorImageFilter(const Self&); //purposely not implemented