X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FFunctors%2FGaussianModelEstimatorFunction.h;h=e3cabfe34387b3e2ee27b712de786e00b00694a1;hb=015105c2f44abb80923a59adfb1a01713506744f;hp=10178033fe397f77f8967ba5be99ddc96566446d;hpb=781520794cb7530b882effe7222dde78f1039eb3;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/Functors/GaussianModelEstimatorFunction.h b/lib/fpa/Image/Functors/GaussianModelEstimatorFunction.h index 1017803..e3cabfe 100644 --- a/lib/fpa/Image/Functors/GaussianModelEstimatorFunction.h +++ b/lib/fpa/Image/Functors/GaussianModelEstimatorFunction.h @@ -33,9 +33,12 @@ namespace fpa itkTypeMacro( GaussianModelEstimatorFunction, itkFunctionBase ); itkGetConstMacro( ModelSupport, unsigned long ); - itkSetMacro( 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: @@ -52,6 +55,7 @@ namespace fpa TYPbPrFunction m_YPbPrFunction; unsigned long m_ModelSupport; + unsigned long m_RealModelSupport; mutable bool m_Estimating; };