Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkToFCompositeFilterWidget.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 #ifndef QmitkToFCompositeFilterWidget_h
14 #define QmitkToFCompositeFilterWidget_h
15 
16 #include <MitkToFUIExports.h>
17 #include "ui_QmitkToFCompositeFilterWidgetControls.h"
18 
19 //mitk headers
20 #include <mitkToFCompositeFilter.h>
21 
30 class 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 = nullptr);
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 
85 signals:
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 
156 
157  private:
158 
162  void SetBilateralFilterParameter();
166  void SetThresholdFilterParameter();
167 
168  mitk::DataStorage::Pointer m_DataStorage;
169 };
170 
171 #endif
QmitkToFCompositeFilterWidget::m_Controls
Ui::QmitkToFCompositeFilterWidgetControls * m_Controls
member holding the UI elements of this widget
Definition: QmitkToFCompositeFilterWidget.h:153
QmitkToFCompositeFilterWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkToFCompositeFilterWidget.h:37
QmitkToFCompositeFilterWidget::m_ToFCompositeFilter
mitk::ToFCompositeFilter::Pointer m_ToFCompositeFilter
member holding the internally used ToFCompositeFilter
Definition: QmitkToFCompositeFilterWidget.h:155
QmitkToFCompositeFilterWidget
Widget for controlling the ToFCompositeFilter (located in module ToFProcessing)
Definition: QmitkToFCompositeFilterWidget.h:30
itk::SmartPointer< Self >
mitk::ToFCompositeFilter
Applies a common filter-pipeline to the first input of this filter.
Definition: mitkToFCompositeFilter.h:40
mitkToFCompositeFilter.h