Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkLegacyLabelSetImageIO.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 mitkLegacyLabelSetImageIO_h
14 #define mitkLegacyLabelSetImageIO_h
15 
16 #include <mitkAbstractFileReader.h>
17 #include <mitkLabelSetImage.h>
18 
19 namespace mitk
20 {
30  {
31  public:
33 
36 
37  // -------------- AbstractFileReader -------------
38 
40 
43 
44  protected:
50  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
51 
52  // Fills the m_DefaultMetaDataKeys vector with default values
54 
55  private:
56  LegacyLabelSetImageIO *Clone() const override;
57 
58  std::vector<std::string> m_DefaultMetaDataKeys;
59  };
60 } // end of namespace mitk
61 
62 #endif
Base class for creating mitk::BaseData objects from files or streams.
std::vector< itk::SmartPointer< BaseData > > Read() override
Read data and create a list of BaseData objects.
Reader for legacy LabelSetImage files (older NRRD-based format).
ConfidenceLevel GetConfidenceLevel() const override
Return the confidence level for reading the given file as a legacy LabelSetImage.
std::vector< itk::SmartPointer< BaseData > > DoRead() override
Read legacy LabelSetImage data from the file system.
mitk::MultiLabelSegmentation InputType
virtual void InitializeDefaultMetaDataKeys()
LegacyLabelSetImageIO()
Default constructor. Registers reader for the legacy LabelSetImage MIME type.
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