Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 {
26  // The export macro should be removed. Currently, the unit
27  // tests directly instantiate this class.
29  {
30  public:
32 
34 
35  // -------------- AbstractFileReader -------------
36 
38 
39  ConfidenceLevel GetConfidenceLevel() const override;
40 
41  protected:
47  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
48 
49  // Fills the m_DefaultMetaDataKeys vector with default values
50  virtual void InitializeDefaultMetaDataKeys();
51 
52  private:
53  LegacyLabelSetImageIO *Clone() const override;
54 
55  std::vector<std::string> m_DefaultMetaDataKeys;
56  };
57 } // end of namespace mitk
58 
59 #endif
mitk::LegacyLabelSetImageIO::InitializeDefaultMetaDataKeys
virtual void InitializeDefaultMetaDataKeys()
mitk::LegacyLabelSetImageIO::LegacyLabelSetImageIO
LegacyLabelSetImageIO()
mitk::AbstractFileReader
Base class for creating mitk::BaseData objects from files or streams.
Definition: mitkAbstractFileReader.h:42
mitk::LegacyLabelSetImageIO
Definition: mitkLegacyLabelSetImageIO.h:28
mitk::LegacyLabelSetImageIO::GetConfidenceLevel
ConfidenceLevel GetConfidenceLevel() const override
The confidence level of the reader or writer implementation.
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::LegacyLabelSetImageIO::DoRead
std::vector< itk::SmartPointer< BaseData > > DoRead() override
Reads a number of mitk::LabelSetImages from the file system.
mitk::LegacyLabelSetImageIO::InputType
mitk::LabelSetImage InputType
Definition: mitkLegacyLabelSetImageIO.h:31
mitkAbstractFileReader.h
mitk::IFileIO::ConfidenceLevel
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data.
Definition: mitkIFileIO.h:45
mitk::AbstractFileReader::Read
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
mitk::LabelSetImage
LabelSetImage class for handling labels and layers in a segmentation session.
Definition: mitkLabelSetImage.h:43
mitkLabelSetImage.h