tfmri.sampling.radial_waveform

radial_waveform(base_resolution, readout_os=2.0, rank=2)[source]

Calculate a radial readout waveform.

Parameters
  • base_resolution – An int. The base resolution, or number of pixels in the readout dimension.

  • readout_os – A float. The readout oversampling factor. Defaults to 2.0.

  • rank

    An int. The rank of the waveform. Must be 2 or 3. Defaults to 2.

Returns

A Tensor of type float32 and shape [samples, rank], where samples is equal to base_resolution * readout_os. The units are radians/voxel, ie, values are in the range [-pi, pi].

Raises

ValueError – If any of the input arguments has an invalid value.