Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkMultiLabelSegmentationStackWriterBase.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 mitkMultiLabelSegmentationStackWriterBase_h
14 #define mitkMultiLabelSegmentationStackWriterBase_h
15 
16 #include <mitkAbstractFileWriter.h>
17 #include <mitkLabelSetImage.h>
18 
19 #include <itkImageIOBase.h>
20 
22 
23 namespace mitk
24 {
34  {
35  public:
37 
44  const std::string& description);
45 
47  void Write() override;
48 
51 
52  protected:
54  virtual itk::ImageIOBase::Pointer GetITKIO() const = 0;
55 
57  virtual std::string GetStackImageExtension() const = 0;
58 
59  private:
60  std::vector<std::string> m_DefaultMetaDataKeys;
61  };
62 } // end of namespace mitk
63 
64 #endif
#define MITKMULTILABELIO_EXPORT
Base class for writing mitk::BaseData objects to files or streams.
A custom mime-type that can be registered as a service object.
Base class for writers that export MultiLabelSegmentation to a stack of image files with a metadata f...
void Write() override
Write the MultiLabelSegmentation as a stack of image files plus metadata.
MultiLabelSegmentationStackWriterBase(const CustomMimeType &mimeType, const std::string &description)
Construct the writer base with a specific MIME type and description.
virtual itk::ImageIOBase::Pointer GetITKIO() const =0
Return the ITK ImageIO instance used for writing individual stack images.
virtual std::string GetStackImageExtension() const =0
Return the file extension for individual stack image files (e.g. ".nii.gz").
ConfidenceLevel GetConfidenceLevel() const override
Return the confidence level for writing the given data.
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
Find image slices visible on a given plane.
ConfidenceLevel
A confidence level describing the reader's or writer's ability to handle the given data or file forma...
Definition: mitkIFileIO.h:57