Medical Imaging Interaction Toolkit  2026.06.00
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:
34 
35  // -------------- AbstractFileReader -------------
36 
38 
41 
42  // -------------- AbstractFileWriter -------------
43 
45  void Write() override;
46 
49 
50  protected:
56  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
57 
58  private:
59 
60  typedef mitk::Image PMInputType;
61  typedef itk::Image<double, 3> PMitkInputImageType;
62  typedef IODFloatingPointImagePixelModule::value_type PMFloatPixelType; // input type required for DCMQI
63  typedef itk::Image<PMFloatPixelType, 3> PMitkInternalImageType;
64  DICOMPMIO *IOClone() const override;
65 
66  // -------------- DICOMPMIO specific functions -------------
67 
68  const std::string CreateMetaDataJsonFilePM() const;
69 
70  };
71 } // end of namespace mitk
72 
73 #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 DICOM Parametric Map objects.
Definition: mitkDICOMPMIO.h:30
std::vector< itk::SmartPointer< BaseData > > DoRead() override
Read a DICOM parametric map from the file system.
DICOMPMIO()
Default constructor. Registers reader/writer for the DICOM PM MIME type.
void Write() override
Write the parametric map to a DICOM file.
ConfidenceLevel GetWriterConfidenceLevel() const override
Return the confidence level for writing the given data as a DICOM parametric map.
ConfidenceLevel GetReaderConfidenceLevel() const override
Return the confidence level for reading the given file as a parametric map.
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
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