Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
QmitkImageMaskingWidget.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 QmitkImageMaskingWidget_h
14
#define QmitkImageMaskingWidget_h
15
16
#include <
MitkSegmentationUIExports.h
>
17
18
#include <
mitkDataStorage.h
>
19
#include <
mitkSurface.h
>
20
21
#include <QWidget>
22
23
namespace
Ui
24
{
25
class
QmitkImageMaskingWidgetControls;
26
}
27
28
namespace
mitk
29
{
30
class
Image
;
31
}
32
41
class
MITKSEGMENTATIONUI_EXPORT
QmitkImageMaskingWidget
:
public
QWidget
42
{
43
Q_OBJECT
44
45
public
:
46
48
explicit
QmitkImageMaskingWidget
(
mitk::DataStorage
* dataStorage, QWidget* parent =
nullptr
);
49
51
~
QmitkImageMaskingWidget
()
override
;
52
53
private
slots:
54
56
void
OnSelectionChanged(
unsigned
int
index,
const
mitk::DataNode
* selection);
57
59
void
OnMaskImagePressed();
60
62
void
OnCustomValueButtonToggled(
bool
checked);
63
64
private
:
65
67
void
SelectionControl(
unsigned
int
index,
const
mitk::DataNode
* selection);
68
70
void
EnableButtons(
bool
enable =
true
);
71
73
itk::SmartPointer<mitk::Image>
MaskImage(
itk::SmartPointer<mitk::Image>
referenceImage,
itk::SmartPointer<mitk::Image>
maskImage );
74
76
itk::SmartPointer<mitk::Image>
ConvertSurfaceToImage(
itk::SmartPointer<mitk::Image>
image,
mitk::Surface::Pointer
surface );
77
79
void
AddToDataStorage(
mitk::DataStorage::Pointer
dataStorage,
itk::SmartPointer<mitk::Image>
segmentation,
80
const
std::string& name,
mitk::DataNode::Pointer
parent =
nullptr
);
81
82
Ui::QmitkImageMaskingWidgetControls* m_Controls;
83
};
84
85
#endif
MITKSEGMENTATIONUI_EXPORT
#define MITKSEGMENTATIONUI_EXPORT
Definition:
MitkSegmentationUIExports.h:15
mitkDataStorage.h
itk::SmartPointer
Definition:
mitkIFileReader.h:30
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitkSurface.h
Ui
Definition:
BlueBerryExampleLauncherDialog.h:21
QmitkImageMaskingWidget
QmitkImageMaskingWidget.
Definition:
QmitkImageMaskingWidget.h:41
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition:
mitkDataStorage.h:43
MitkSegmentationUIExports.h
itk::Image
class ITK_EXPORT Image
Definition:
mitkGeometryClipImageFilter.h:25
mitk::DataNode
Class for nodes of the DataTree.
Definition:
mitkDataNode.h:63
src
MITK
Modules
SegmentationUI
SegmentationUtilities
QmitkImageMaskingWidget.h
Generated on Thu Nov 30 2023 15:58:57 for Medical Imaging Interaction Toolkit by
1.8.17