X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FFunctors%2FGaussianModelEstimatorFunction.h;fp=lib%2Ffpa%2FImage%2FFunctors%2FGaussianModelEstimatorFunction.h;h=0000000000000000000000000000000000000000;hb=9c4035dc18f4e44a92cda3e3c1c6e583c94ef06b;hp=0b7727d7bbc9e3a6a4589d4c30e86172f8a78d7e;hpb=e832f438861464a8d521464b61be7e31c896adb8;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/Functors/GaussianModelEstimatorFunction.h b/lib/fpa/Image/Functors/GaussianModelEstimatorFunction.h deleted file mode 100644 index 0b7727d..0000000 --- a/lib/fpa/Image/Functors/GaussianModelEstimatorFunction.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef __FPA__IMAGE__FUNCTORS__GAUSSIANMODELESTIMATORFUNCTION__H__ -#define __FPA__IMAGE__FUNCTORS__GAUSSIANMODELESTIMATORFUNCTION__H__ - -#include -#include -#include - -namespace fpa -{ - namespace Image - { - namespace Functors - { - /** - */ - template< class I, class S > - class GaussianModelEstimatorFunction - : public itk::FunctionBase< typename I::PixelType, bool > - { - public: - // Type-related and pointers - typedef GaussianModelEstimatorFunction Self; - typedef itk::FunctionBase< typename I::PixelType, bool > Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - // Superclass' types - typedef cpPlugins::Extensions::Algorithms::IterativeGaussianModelEstimator< S, 3 > TEstimator; - typedef cpPlugins::Extensions::Algorithms::RGBToYPbPrFunction< S > TYPbPrFunction; - - public: - itkNewMacro( Self ); - itkTypeMacro( GaussianModelEstimatorFunction, itkFunctionBase ); - - itkGetConstMacro( ModelSupport, unsigned long ); - - public: - bool SaveModelToFile( const std::string& filename ) const; - bool LoadModelFromFile( const std::string& filename ); - - virtual void SetModelSupport( const unsigned long& s ); - virtual bool Evaluate( const typename I::PixelType& rgb ) const; - - protected: - GaussianModelEstimatorFunction( ); - virtual ~GaussianModelEstimatorFunction( ); - - private: - // Purposely not implemented - GaussianModelEstimatorFunction( const Self& ); - void operator=( const Self& ); - - protected: - typename TEstimator::Pointer m_Estimator; - TYPbPrFunction m_YPbPrFunction; - - unsigned long m_ModelSupport; - unsigned long m_RealModelSupport; - mutable bool m_Estimating; - }; - - } // ecapseman - - } // ecapseman - -} // ecapseman - -#ifndef ITK_MANUAL_INSTANTIATION -#include -#endif // ITK_MANUAL_INSTANTIATION - -#endif // __FPA__IMAGE__FUNCTORS__GAUSSIANMODELESTIMATORFUNCTION__H__ - -// eof - $RCSfile$