X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FAlgorithms%2FIterativeGaussianModelEstimator.h;h=b38e06ede2d6732e86f4793a97964de10b0859b1;hb=8eaa2cf759c39233848cdd5b8346faccbea4c172;hp=95947cf0c35fe4a4ee59316c26cce522f36d8ccb;hpb=b3bb78df1a899c796586df5c0a6eec8c84f9b739;p=cpPlugins.git diff --git a/lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.h b/lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.h index 95947cf..b38e06e 100644 --- a/lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.h +++ b/lib/cpExtensions/Algorithms/IterativeGaussianModelEstimator.h @@ -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 -#endif // ITK_MANUAL_INSTANTIATION #endif // __CPEXTENSIONS__ALGORITHMS__ITERATIVEGAUSSIANMODELESTIMATOR__H__