Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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"
18 
19 namespace us
20 {
21  class ModuleResource;
22 }
23 
24 namespace mitk
25 {
40  {
41  public:
43  itkFactorylessNewMacro(Self);
44  itkCloneMacro(Self);
45 
46  const char **GetXPM() const override;
47  us::ModuleResource GetCursorIconResource() const override;
48  us::ModuleResource GetIconResource() const override;
49 
50  const char *GetName() const override;
51 
52  protected:
53  EraseRegionTool() = default; // purposely hidden
54  ~EraseRegionTool() = default;
55 
56  Image::Pointer GenerateFillImage(const Image* workingSlice, Point3D seedPoint, mitk::Label::PixelType& seedLabelValue) const override;
57  void PrepareFilling(const Image* workingSlice, Point3D seedPoint) override;
58  };
59 
60 } // namespace
61 
62 #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:34
mitk
Find image slices visible on a given plane.
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:39
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkSegmentationExports.h