Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef MITKNavigationDataSmoothingFilter_H_HEADER_INCLUDED_
19 #define MITKNavigationDataSmoothingFilter_H_HEADER_INCLUDED_
20 
22 #include "MitkIGTExports.h"
23 
24 
25 namespace mitk {
26 
34  {
35  public:
37 
38  itkNewMacro(Self);
39 
43  itkSetMacro(NumerOfValues,int);
44 
45  protected:
48 
49  virtual void GenerateData() override;
50 
51  std::map< int, std::map< int , mitk::Point3D> > m_LastValuesList;
52 
54 
55  void InitializeLastValuesList();
56 
57  void AddValue(int outputID, mitk::Point3D value);
58 
59  mitk::Point3D GetMean(int outputID);
60 
61  };
62 } // namespace mitk
63 
64 #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 mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
This filter smoothes the navigation data by calculating the mean value of the last few input values a...