X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FAlgorithms%2FKalmanVelocityFilter.h;h=781e9117d19137368213b225c25fc5794c9d35ad;hb=00d030e4e10fea579b427297027e3ac37ff960b6;hp=5dd3f56d3d2ee6951454eb9562e07aa573d89966;hpb=2361f4f97631e09d88d8a5510a369817dcaa19db;p=cpPlugins.git diff --git a/lib/cpExtensions/Algorithms/KalmanVelocityFilter.h b/lib/cpExtensions/Algorithms/KalmanVelocityFilter.h index 5dd3f56..781e911 100644 --- a/lib/cpExtensions/Algorithms/KalmanVelocityFilter.h +++ b/lib/cpExtensions/Algorithms/KalmanVelocityFilter.h @@ -8,56 +8,56 @@ #include namespace cpExtensions +{ + namespace Algorithms { - namespace Algorithms + /** + */ + template< typename T > + class cpExtensions_EXPORT KalmanVelocityFilter + : public KalmanFilter< T > { - /** - */ - template< typename T > - class cpExtensions_EXPORT KalmanVelocityFilter - : public KalmanFilter< T > - { - public: - typedef KalmanVelocityFilter Self; - typedef KalmanFilter< T > Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - typedef typename Superclass::TScalar TScalar; - typedef typename Superclass::TMatrix TMatrix; - typedef typename Superclass::TVector TVector; - - public: - itkNewMacro( Self ); - itkTypeMacro( KalmanVelocityFilter, KalmanFilter ); - - kalmanGetSetMacro( TMatrix, Sigma ); - kalmanGetSetMatrixMacro( Sigma, AccelerationNoise ); - - public: - void Configure( unsigned int m ); - - TScalar GetTimeOffset( ) const; - void SetTimeOffset( TScalar t ); - - /// Iteration methods - virtual void Initialize( ); - - protected: + public: + typedef KalmanVelocityFilter Self; + typedef KalmanFilter< T > Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; + + typedef typename Superclass::TScalar TScalar; + typedef typename Superclass::TMatrix TMatrix; + typedef typename Superclass::TVector TVector; + + public: + itkNewMacro( Self ); + itkTypeMacro( KalmanVelocityFilter, KalmanFilter ); + + kalmanGetSetMacro( TMatrix, Sigma ); + kalmanGetSetMatrixMacro( Sigma, AccelerationNoise ); + + public: + void Configure( unsigned int m ); + + TScalar GetTimeOffset( ) const; + void SetTimeOffset( TScalar t ); + + /// Iteration methods + virtual void Initialize( ) ITK_OVERRIDE; + + protected: KalmanVelocityFilter( ); virtual ~KalmanVelocityFilter( ); - private: + private: // Purposely not implemented. KalmanVelocityFilter( const Self& ); void operator=( const Self& ); - protected: + protected: TMatrix m_TimeOffset; TMatrix m_Sigma; - }; + }; - } // ecapseman + } // ecapseman } // ecapseman