mri.generators.base#

Base Class for k-space generators.

Kspace Generators emulates the acquisition of MRI data, by providing sequential access to data.

class KspaceGeneratorBase(full_kspace: numpy.ndarray, mask: numpy.ndarray, max_iter: int = 1)[source]#

Bases: object

Basic K-space Generator emulate the acquisition of an MRI.

K-space generator are regular Python generators, with extra function to access data property.

At each iteration the relevant kspace data and mask is returned.

Parameters
  • full_kspace (numpy.ndarray) – The fully sampled kspace, which will be returned incrementally, use for the Fourier transform.

  • mask (numpy.ndarray) – A binary mask, giving the sampled location for the kspace

property shape#

Return shape of full_kspace.

property dtype#

Return dtype of full_kspace.

reset()[source]#

Reset the Generator to its initial state.