Medical Imaging Interaction Toolkit  2023.04.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:
32 
33 
34  DICOMPMIO();
35 
36  // -------------- AbstractFileReader -------------
37 
39 
41 
42  // -------------- AbstractFileWriter -------------
43 
44  void Write() override;
46  protected:
52  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
53 
54  private:
55 
56  typedef mitk::Image PMInputType;
57  typedef itk::Image<double, 3> PMitkInputImageType;
58  typedef IODFloatingPointImagePixelModule::value_type PMFloatPixelType; // input type required for DCMQI
59  typedef itk::Image<PMFloatPixelType, 3> PMitkInternalImageType;
60  DICOMPMIO *IOClone() const override;
61 
62  // -------------- DICOMPMIO specific functions -------------
63 
64  const std::string CreateMetaDataJsonFilePM() const;
65 
66  };
67 } // end of namespace mitk
68 
69 #endif
mitkImage.h
mitk::DICOMPMIO::DoRead
std::vector< itk::SmartPointer< BaseData > > DoRead() override
Reads a DICOM parametric map from the file system.
mitk::DICOMPMIO
Definition: mitkDICOMPMIO.h:29
mitk::DICOMPMIO::DICOMPMIO
DICOMPMIO()
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::DICOMPMIO::GetReaderConfidenceLevel
ConfidenceLevel GetReaderConfidenceLevel() const override
mitkAbstractFileIO.h
mitk::DICOMPMIO::GetWriterConfidenceLevel
ConfidenceLevel GetWriterConfidenceLevel() const override
mitk::DICOMPMIO::Write
void Write() override
Write the base data to the specified location or output stream.
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::AbstractFileIO
Abstract class for implementing a reader and writer.
Definition: mitkAbstractFileIO.h:69
mitk::AbstractFileReader::Read
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.