Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
mitkEraseRegionTool.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 mitkEraseRegionTool_h
14
#define mitkEraseRegionTool_h
15
16
#include "
mitkFillRegionBaseTool.h
"
17
#include <
MitkSegmentationExports.h
>
18
19
namespace
us
20
{
21
class
ModuleResource;
22
}
23
24
namespace
mitk
25
{
41
class
MITKSEGMENTATION_EXPORT
EraseRegionTool
:
public
FillRegionBaseTool
42
{
43
public
:
44
mitkClassMacro
(
EraseRegionTool
,
FillRegionBaseTool
);
45
itkFactorylessNewMacro(
Self
);
46
itkCloneMacro(
Self
);
47
48
const
char
**GetXPM()
const override
;
49
us::ModuleResource
GetCursorIconResource()
const override
;
50
us::ModuleResource
GetIconResource()
const override
;
51
52
const
char
*GetName()
const override
;
53
54
protected
:
55
EraseRegionTool
() =
default
;
// purposely hidden
56
~
EraseRegionTool
() =
default
;
57
58
Image::Pointer
GenerateFillImage(
const
Image
* workingSlice,
Point3D
seedPoint,
mitk::Label::PixelType
& seedLabelValue)
const override
;
59
void
PrepareFilling(
const
Image
* workingSlice,
Point3D
seedPoint)
override
;
60
};
61
62
}
// namespace
63
64
#endif
mitk::FillRegionBaseTool
Base class for tools that fill a connected region of a 2D slice.
Definition:
mitkFillRegionBaseTool.h:41
us
Definition:
mitkAbstractFileReader.h:29
mitk::Image
Image class for storing images.
Definition:
mitkImage.h:69
mitkFillRegionBaseTool.h
itk::SmartPointer< Self >
mitk::Label::PixelType
unsigned short PixelType
Definition:
mitkLabel.h:33
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
RenderingTests.dox:1
mitk::EventStateMachine
**
Definition:
mitkEventStateMachine.h:111
mitk::Point< ScalarType, 3 >
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition:
MitkSegmentationExports.h:15
us::ModuleResource
Definition:
usModuleResource.h:55
mitk::EraseRegionTool
Erase the inside of a contour by filling the inside of a contour with the background pixel value.
Definition:
mitkEraseRegionTool.h:41
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
MitkSegmentationExports.h
src
MITK
Modules
Segmentation
Interactions
mitkEraseRegionTool.h
Generated on Wed May 17 2023 16:26:06 for Medical Imaging Interaction Toolkit by
1.8.17