Medical Imaging Interaction Toolkit  2021.02.99-c051ab3b
Medical Imaging Interaction Toolkit
mitkNavigationDataSmoothingFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 
14 #ifndef MITKNavigationDataSmoothingFilter_H_HEADER_INCLUDED_
15 #define MITKNavigationDataSmoothingFilter_H_HEADER_INCLUDED_
16 
18 #include "MitkIGTExports.h"
19 
20 
21 namespace mitk {
22 
30  {
31  public:
33 
34  itkNewMacro(Self);
35 
39  itkSetMacro(NumerOfValues,int);
40 
41  protected:
44 
45  void GenerateData() override;
46 
47  std::map< int, std::map< int , mitk::Point3D> > m_LastValuesList;
48 
50 
51  void InitializeLastValuesList();
52 
53  void AddValue(int outputID, mitk::Point3D value);
54 
55  mitk::Point3D GetMean(int outputID);
56 
57  };
58 } // namespace mitk
59 
60 #endif /* MITKNavigationDataSmoothingFilter_H_HEADER_INCLUDED_ */
std::map< int, std::map< int, mitk::Point3D > > m_LastValuesList
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIGT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
This filter smoothes the navigation data by calculating the mean value of the last few input values a...