]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.h
Cast image filter added. ROI filter modified.
[cpPlugins.git] / lib / cpExtensions / Algorithms / IterativeGaussianModelEstimator.h
index 95947cf0c35fe4a4ee59316c26cce522f36d8ccb..b38e06ede2d6732e86f4793a97964de10b0859b1 100644 (file)
@@ -110,6 +110,32 @@ namespace cpExtensions
         const itk::Vector< _TOtherScalar, _VDimension >& v
         ) const;
 
+      template< class _TOtherScalar >
+      _TScalar Density( const _TOtherScalar& x1, ... ) const;
+
+      template< class _TOtherScalar >
+      _TScalar Density( const _TOtherScalar* array ) const;
+
+      template< class _TOtherScalar >
+      _TScalar Density(
+        const vnl_vector< _TOtherScalar >& v
+        ) const;
+
+      template< class _TOtherScalar >
+      _TScalar Density(
+        const itk::CovariantVector< _TOtherScalar, _VDimension >& v
+        ) const;
+
+      template< class _TOtherScalar >
+      _TScalar Density(
+        const itk::Point< _TOtherScalar, _VDimension >& p
+        ) const;
+
+      template< class _TOtherScalar >
+      _TScalar Density(
+        const itk::Vector< _TOtherScalar, _VDimension >& v
+        ) const;
+
     protected:
       IterativeGaussianModelEstimator( );
       virtual ~IterativeGaussianModelEstimator( );
@@ -117,6 +143,7 @@ namespace cpExtensions
     protected:
       void _AddSample( const TVector& v ) const;
       _TScalar _SquaredMahalanobis( const TVector& v ) const;
+      _TScalar _Density( const TVector& v ) const;
 
     private:
       // Purposely not implemented
@@ -137,9 +164,7 @@ namespace cpExtensions
 
 } // ecapseman
 
-#ifndef ITK_MANUAL_INSTANTIATION
 #include <cpExtensions/Algorithms/IterativeGaussianModelEstimator.hxx>
-#endif // ITK_MANUAL_INSTANTIATION
 
 #endif // __CPEXTENSIONS__ALGORITHMS__ITERATIVEGAUSSIANMODELESTIMATOR__H__