Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkMonaiLabel2DTool.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 #ifndef mitkMonaiLabel2DTool_h
13 #define mitkMonaiLabel2DTool_h
14 
15 #include "mitkMonaiLabelTool.h"
17 
18 namespace us
19 {
20  class ModuleResource;
21 }
22 
23 namespace mitk
24 {
34  {
35  public:
37  itkFactorylessNewMacro(Self);
38  itkCloneMacro(Self);
39 
40  const char *GetName() const override;
41  const char **GetXPM() const override;
43 
44  void Activated() override;
45  void WriteImage(const Image *inputAtTimeStep, const std::string &inputImagePath) const override;
46  void WriteBackResults(MultiLabelSegmentation *previewImage, MultiLabelSegmentation *segResults, TimeStepType timeStep) const override;
47  void ConfirmCleanUp() override;
48 
49  protected:
50  MonaiLabel2DTool() = default;
51  ~MonaiLabel2DTool() = default;
52  };
53 }
54 #endif
#define MITKSEGMENTATION_EXPORT
Image class for storing images.
Definition: mitkImage.h:70
MonaiLabel segmentation 2D tool.
mitkClassMacro(MonaiLabel2DTool, MonaiLabelTool)
void WriteBackResults(MultiLabelSegmentation *previewImage, MultiLabelSegmentation *segResults, TimeStepType timeStep) const override
Writes back segmentation results in 3D or 2D shape to preview MultiLabelSegmentation.
void WriteImage(const Image *inputAtTimeStep, const std::string &inputImagePath) const override
Writes image to disk as the tool desires. Default implementation does nothing.
const char ** GetXPM() const override
Returns an icon in the XPM format.
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
const char * GetName() const override
Returns the name of this tool. Make it short!
void ConfirmCleanUp() override
void Activated() override
Called when the tool gets activated.
MonaiLabel segmentation tool base class.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Find image slices visible on a given plane.
std::size_t TimeStepType