Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkCloseRegionTool.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 mitkCloseRegionTool_h
14 #define mitkCloseRegionTool_h
15 
16 #include "mitkFillRegionBaseTool.h"
18 
19 namespace us
20 {
21  class ModuleResource;
22 }
23 
24 namespace mitk
25 {
41  {
42  public:
44  itkFactorylessNewMacro(Self);
45  itkCloneMacro(Self);
46 
47  const char **GetXPM() const override;
48  us::ModuleResource GetCursorIconResource() const override;
49  us::ModuleResource GetIconResource() const override;
50 
51  const char *GetName() const override;
52 
53  protected:
54  CloseRegionTool() = default; // purposely hidden
55  ~CloseRegionTool() = default;
56 
57  Image::Pointer GenerateFillImage(const Image* workingSlice, Point3D seedPoint, mitk::Label::PixelType& seedLabelValue) const override;
58  void PrepareFilling(const Image* workingSlice, Point3D seedPoint) override;
59 
60  };
61 
62 } // namespace
63 
64 #endif
mitk::CloseRegionTool
Closes/Fills the inside of a contour with the foreground pixel value.
Definition: mitkCloseRegionTool.h:40
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
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MitkSegmentationExports.h