Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkOtsuTool3DGUI.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 QmitkOtsuTool3DGUI_h
14 #define QmitkOtsuTool3DGUI_h
15 
17 
19 #include <memory>
20 
21 namespace Ui
22 {
23  class QmitkOtsuToolWidgetControls;
24 }
25 
36 {
37  Q_OBJECT
38 
39 public:
41  itkFactorylessNewMacro(Self);
42  itkCloneMacro(Self);
43 
44 protected slots :
45 
47 
49 
50 private slots:
51 
52  void OnAdvancedSettingsButtonToggled(bool toggled);
53 
54 protected:
57 
58  void ConnectNewTool(mitk::SegWithPreviewTool* newTool) override;
59  void InitializeUI(QBoxLayout* mainLayout) override;
60 
61  void EnableWidgets(bool enabled) override;
62 
63  std::unique_ptr<Ui::QmitkOtsuToolWidgetControls> m_Controls;
64 
65  bool m_FirstPreviewComputation = true;
67 };
68 
69 #endif
#define MITKSEGMENTATIONUI_EXPORT
GUI for tools based on mitk::AutoMLSegmentationWithPreviewTool.
GUI for mitk::OtsuTool3D providing controls for Otsu multi-threshold segmentation.
void ConnectNewTool(mitk::SegWithPreviewTool *newTool) override
void OnPreviewBtnClicked()
EnableConfirmSegBtnFunctionType m_SuperclassEnableConfirmSegBtnFnc
void InitializeUI(QBoxLayout *mainLayout) override
void OnRegionSpinboxChanged(int)
void EnableWidgets(bool enabled) override
std::unique_ptr< Ui::QmitkOtsuToolWidgetControls > m_Controls
mitkClassMacro(QmitkOtsuTool3DGUI, QmitkMultiLabelSegWithPreviewToolGUIBase)
std::function< bool(bool)> EnableConfirmSegBtnFunctionType
Base class for any auto segmentation tool that provides a preview of the new segmentation.