MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkNavigationDataSmoothingFilter.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13
14#ifndef mitkNavigationDataSmoothingFilter_h
15#define mitkNavigationDataSmoothingFilter_h
16
18#include "MitkIGTExports.h"
19
20
21namespace mitk {
22
30 {
31 public:
33
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
This filter smoothes the navigation data by calculating the mean value of the last few input values a...
mitkClassMacro(NavigationDataSmoothingFilter, NavigationDataToNavigationDataFilter)
std::map< int, std::map< int, mitk::Point3D > > m_LastValuesList
itkSetMacro(NumerOfValues, int)
Sets the number of values before the current value which will be used for smoothing.
NavigationDataToNavigationDataFilter is the base class of all filters that receive NavigationDatas as...
IGT Exceptions.