Data Reader

namespace yagit
namespace DataReader

Functions

ImageData readRTDoseDicom(const std::string &filepath, bool displayInfo = false)

Read RT Dose DICOM file and retrieve dose image from it.

Parameters:
  • filepath – File path to RT Dose DICOM (.dcm)

  • displayInfo – Whether to show additional information read from the file

Returns:

Image containing dose values and image info (size, offset, spacing) retrieved from DICOM file

ImageData readMetaImage(const std::string &filepath, bool displayInfo = false)

Read MetaImage file and retrieve image from it.

Parameters:
  • filepath – File path to MetaImage file (.mha)

  • displayInfo – Whether to show additional information read from the file

Returns:

Image and its info (size, offset, spacing) retrieved from MetaImage file