Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkDICOMSegmentationIO.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 __mitkDICOMSegmentationIO_h
14 #define __mitkDICOMSegmentationIO_h
15 
16 #include <mitkAbstractFileIO.h>
17 #include <mitkLabelSetImage.h>
18 
19 #include <dcmqi/JSONSegmentationMetaInformationHandler.h>
20 
21 namespace mitk
22 {
28  {
29  public:
31  typedef itk::Image<unsigned short, 3> itkInputImageType;
32  typedef itk::Image<short, 3> itkInternalImageType;
33 
35 
36  // -------------- AbstractFileReader -------------
37 
44  std::vector<BaseData::Pointer> Read() override;
46 
47  // -------------- AbstractFileWriter -------------
48 
49  void Write() override;
51 
52  private:
53  DICOMSegmentationIO *IOClone() const override;
54 
55  // -------------- DICOMSegmentationIO specific functions -------------
56  const std::string CreateMetaDataJsonFile(int layer);
57  void SetLabelProperties(Label *label, dcmqi::SegmentAttributes *segmentAttribute);
58  void AddDICOMTagsToService();
59  };
60 } // end of namespace mitk
61 
62 #endif // __mitkDICOMSegmentationIO_h
DataCollection - Class to facilitate loading/accessing structured data.
A data structure describing a label.
Definition: mitkLabel.h:31
ConfidenceLevel GetWriterConfidenceLevel() const override
std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
ConfidenceLevel GetReaderConfidenceLevel() const override
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
Definition: mitkIFileIO.h:45
itk::Image< unsigned short, 3 > itkInputImageType
void Write() override
Write the base data to the specified location or output stream.
LabelSetImage class for handling labels and layers in a segmentation session.
Abstract class for implementing a reader and writer.
std::vector< BaseData::Pointer > Read() override
Reads a number of DICOM segmentation from the file system.
itk::Image< short, 3 > itkInternalImageType