Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkMultiLabelSegmentationIO.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 mitkMultiLabelSegmentationIO_h
14 #define mitkMultiLabelSegmentationIO_h
15 
16 #include <mitkAbstractFileIO.h>
17 #include <mitkLabelSetImage.h>
18 
19 namespace mitk
20 {
29  {
30  public:
32 
35 
36  // -------------- AbstractFileReader -------------
37 
39 
42 
43  // -------------- AbstractFileWriter -------------
44 
46  void Write() override;
47 
50 
51  protected:
57  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
58 
59  // Fills the m_DefaultMetaDataKeys vector with default values
61 
62  private:
63  MultiLabelSegmentationIO *IOClone() const override;
64 
65  std::vector<std::string> m_DefaultMetaDataKeys;
66  };
67 } // end of namespace mitk
68 
69 #endif
Abstract base class for implementing a combined file reader and writer.
std::vector< itk::SmartPointer< BaseData > > Read() override
Read data and create a list of BaseData objects.
Read and write MultiLabelSegmentation objects to/from NRRD files.
virtual void InitializeDefaultMetaDataKeys()
mitk::MultiLabelSegmentation InputType
std::vector< itk::SmartPointer< BaseData > > DoRead() override
Read MultiLabelSegmentation data from the file system.
ConfidenceLevel GetReaderConfidenceLevel() const override
Return the confidence level for reading the given file as a MultiLabelSegmentation.
void Write() override
Write the MultiLabelSegmentation to an NRRD file with embedded label metadata.
MultiLabelSegmentationIO()
Default constructor. Registers reader/writer for the MultiLabelSegmentation MIME type.
ConfidenceLevel GetWriterConfidenceLevel() 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