ExamImage

Contents

ExamImage#

class pulserver.recon.ExamImage[source]#

Bases: object

An image measured by one series and read by later series of the exam.

A calibration series stores a map with the geometry it was measured on, as context.b1_map = ExamImage.measured(b1, context, data), and a later series reads it resampled onto its own grid with context.b1_map.on(context, data). The resampling uses the two geometries alone, no registration: bartorch.tools.reslice().

Attributes:
  • data (ndarray) – (..., z, y, x): x the readout, y the phase encode, z the partition or slice.

  • header (str) – The MRD XML header of the series that measured it; empty offline.

  • geometry (dict or tuple of dict) – Where data lies, as the fields of an MRD ImageHeader: position (mm, the centre of voxel n // 2 along each axis), read_dir, phase_dir, slice_dir, field_of_view (mm, read, phase, slice) and matrix_size (read, phase, slice). One for the volume, or a tuple of one per plane along z for a stack of slices.

Methods

measured

Return data with the geometry of the image unit reconstructs.

on

Return the image resampled onto the reconstruction grid of unit.

Attributes