]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/Functors/GaussianModelEstimatorFunction.h
...
[FrontAlgorithms.git] / lib / fpa / Image / Functors / GaussianModelEstimatorFunction.h
index 10178033fe397f77f8967ba5be99ddc96566446d..0b7727d7bbc9e3a6a4589d4c30e86172f8a78d7e 100644 (file)
@@ -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;
       };
 
@@ -61,7 +65,9 @@ namespace fpa
 
 } // ecapseman
 
+#ifndef ITK_MANUAL_INSTANTIATION
 #include <fpa/Image/Functors/GaussianModelEstimatorFunction.hxx>
+#endif // ITK_MANUAL_INSTANTIATION
 
 #endif // __FPA__IMAGE__FUNCTORS__GAUSSIANMODELESTIMATORFUNCTION__H__