Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkDICOMPMIO.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 __mitkDICOMPMIO_h
14 #define __mitkDICOMPMIO_h
15 
16 #include <mitkAbstractFileIO.h>
17 #include <mitkImage.h>
18 #include <dcmtk/dcmpmap/dpmparametricmapiod.h>
19 #include <dcmqi/JSONSegmentationMetaInformationHandler.h>
20 #include <dcmqi/JSONParametricMapMetaInformationHandler.h>
21 
22 
23 namespace mitk
24 {
30  {
31  public:
32 
33 
34  DICOMPMIO();
35 
36  // -------------- AbstractFileReader -------------
37 
39 
45  std::vector<BaseData::Pointer> Read() override;
47 
48  // -------------- AbstractFileWriter -------------
49 
50  void Write() override;
52 
53  private:
54 
55  typedef mitk::Image PMInputType;
56  typedef itk::Image<double, 3> PMitkInputImageType;
57  typedef IODFloatingPointImagePixelModule::value_type PMFloatPixelType; // input type required for DCMQI
58  typedef itk::Image<PMFloatPixelType, 3> PMitkInternalImageType;
59  DICOMPMIO *IOClone() const override;
60 
61  // -------------- DICOMPMIO specific functions -------------
62 
63  const std::string CreateMetaDataJsonFilePM() const;
64 
65  };
66 } // end of namespace mitk
67 
68 #endif // __mitkDICOMPMIO_h
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
ConfidenceLevel GetReaderConfidenceLevel() const override
std::vector< BaseData::Pointer > Read() override
Reads a DICOM parametric maps from the file system.
ConfidenceLevel
A confidence level describing the confidence of the reader or writer in handling the given data...
Definition: mitkIFileIO.h:45
Image class for storing images.
Definition: mitkImage.h:72
void Write() override
Write the base data to the specified location or output stream.
ConfidenceLevel GetWriterConfidenceLevel() const override
Abstract class for implementing a reader and writer.