]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Algorithms/KalmanVelocityFilter.h
...
[cpPlugins.git] / lib / cpExtensions / Algorithms / KalmanVelocityFilter.h
index 5dd3f56d3d2ee6951454eb9562e07aa573d89966..c32dde6e7f51bb3417915f2a4ae316d83d62fb0b 100644 (file)
@@ -8,56 +8,56 @@
 #include <cpExtensions/Algorithms/KalmanFilter.h>
 
 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( ) cpExtensions_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