Medical Imaging Interaction Toolkit  2026.06.00
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 {
40  {
41  public:
43  itkFactorylessNewMacro(Self);
44  itkCloneMacro(Self);
45 
47  const char *GetName() const override;
48 
51 
53  void Activated() override;
54 
59  void WriteImage(const Image *inputAtTimeStep, const std::string &inputImagePath) const override;
60 
66  void WriteBackResults(MultiLabelSegmentation *previewImage, MultiLabelSegmentation *segResults, TimeStepType timeStep) const override;
67 
68  protected:
69  MonaiLabel3DTool() = default;
70  ~MonaiLabel3DTool() = default;
71  };
72 } // namespace mitk
73 #endif
#define MITKSEGMENTATION_EXPORT
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
MONAI Label segmentation tool operating on 3D volumes.
mitkClassMacro(MonaiLabel3DTool, MonaiLabelTool)
const char * GetName() const override
Return the human-readable name of this tool ("MONAI Label 3D").
void Activated() override
Activate the tool and configure label transfer scope to all labels.
void WriteImage(const Image *inputAtTimeStep, const std::string &inputImagePath) const override
Write the input 3D image to disk.
us::ModuleResource GetIconResource() const override
Return the toolbar icon resource for this tool.
void WriteBackResults(MultiLabelSegmentation *previewImage, MultiLabelSegmentation *segResults, TimeStepType timeStep) const override
Write segmentation results back into the preview image for the given time step.
MonaiLabel segmentation tool base class.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Represents a resource (text file, image, etc.) embedded in a CppMicroServices module.
Find image slices visible on a given plane.
std::size_t TimeStepType
Type for time step indices (non-negative integers starting from 0).