MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkToFCompositeFilterWidget.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#ifndef QmitkToFCompositeFilterWidget_h
14#define QmitkToFCompositeFilterWidget_h
15
16#include <MitkToFUIExports.h>
17#include "ui_QmitkToFCompositeFilterWidgetControls.h"
18
19//mitk headers
21
30class MITKTOFUI_EXPORT QmitkToFCompositeFilterWidget :public QWidget
31{
32 //this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
33 Q_OBJECT
34
35 public:
36
37 static const std::string VIEW_ID;
38
39 QmitkToFCompositeFilterWidget(QWidget* p = nullptr, Qt::WindowFlags f1 = {});
41
42 /* @brief This method is part of the widget an needs not to be called seperately. */
43 virtual void CreateQtPartControl(QWidget *parent);
44 /* @brief This method is part of the widget an needs not to be called seperately. (Creation of the connections of main and control widget.)*/
45 virtual void CreateConnections();
46
51 void SetToFCompositeFilter(mitk::ToFCompositeFilter* toFCompositeFilter);
56 mitk::ToFCompositeFilter* GetToFCompositeFilter();
60 void UpdateFilterParameter();
64 void SetWidgetConfiguration(bool threshold, bool mask, bool tempMedian, bool tempAverage, bool median, bool bilateral );
71 void SetStandardParametersBilateralFilter(double domainSigma, double rangeSigma, int kernelRadius=0);
77 void SetStandardParametersThresholdFilter(int min, int max);
81 void SetStandardParameterTemporalAveraging(int nImages);
82
83 void SetDataStorage(mitk::DataStorage::Pointer dataStorage);
84
85signals:
86
87 protected slots:
92 void OnShowAdvancedOptionsCheckboxChecked(bool checked);
96 void OnTemporalMedianFilterCheckBoxChecked(bool checked);
100 void OnAverageFilterCheckBoxChecked(bool checked);
104 void OnThresholdFilterCheckBoxChecked(bool checked);
108 void OnMaskSegmentationCheckBoxChecked(bool checked);
112 void OnMedianFilterCheckBoxChecked(bool checked);
116 void OnBilateralFilterCheckBoxChecked(bool checked);
117
121 void OnSpanChanged(int lower, int upper);
125 void OnResetThresholdFilterRangeSlider();
129 void OnTemporalMedianFilterNumOfFramesSpinBoxValueChanged(int value);
133 void OnBilateralFilterDomainSigmaSpinBoxValueChanged(double value);
137 void OnBilateralFilterRangeSigmaSpinBoxValueChanged(double value);
141 void OnBilateralFilterKernelRadiusSpinBoxValueChanged(int value);
145 void OnThresholdFilterMinValueChanged(int value);
149 void OnThresholdFilterMaxValueChanged(int value);
150
151 protected:
152
153 Ui::QmitkToFCompositeFilterWidgetControls* m_Controls;
154
155 mitk::ToFCompositeFilter::Pointer m_ToFCompositeFilter;
156
157 private:
158
162 void SetBilateralFilterParameter();
166 void SetThresholdFilterParameter();
167
168 mitk::DataStorage::Pointer m_DataStorage;
169};
170
171#endif
Widget for controlling the ToFCompositeFilter (located in module ToFProcessing)
mitk::ToFCompositeFilter::Pointer m_ToFCompositeFilter
member holding the internally used ToFCompositeFilter
Ui::QmitkToFCompositeFilterWidgetControls * m_Controls
member holding the UI elements of this widget
Applies a common filter-pipeline to the first input of this filter.