Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkMonaiLabel3DTool.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 mitkMonaiLabel3DTool_h
13 #define mitkMonaiLabel3DTool_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  void Activated() override;
44  void WriteImage(const Image *inputAtTimeStep, const std::string &inputImagePath) const override;
45  void WriteBackResults(MultiLabelSegmentation *previewImage, MultiLabelSegmentation *segResults, TimeStepType timeStep) const override;
46 
47  protected:
48  MonaiLabel3DTool() = default;
49  ~MonaiLabel3DTool() = default;
50  };
51 } // namespace mitk
52 #endif
#define MITKSEGMENTATION_EXPORT
Image class for storing images.
Definition: mitkImage.h:70
MonaiLabel segmentation 3D tool.
mitkClassMacro(MonaiLabel3DTool, MonaiLabelTool)
const char * GetName() const override
Returns the name of this tool. Make it short!
void Activated() override
Called when the tool gets activated.
void WriteImage(const Image *inputAtTimeStep, const std::string &inputImagePath) const override
Writes image to disk as the tool desires. Default implementation does nothing.
us::ModuleResource GetIconResource() const override
Returns the tool button icon of the tool wrapped by a usModuleResource.
const char ** GetXPM() const override
Returns an icon in the XPM format.
void WriteBackResults(MultiLabelSegmentation *previewImage, MultiLabelSegmentation *segResults, TimeStepType timeStep) const override
Writes back segmentation results in 3D or 2D shape to preview MultiLabelSegmentation.
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