Relaxation Kernel

T1

class mrinversion.kernel.relaxation.T1(kernel_dimension, inverse_dimension)[source]

Bases: BaseRelaxation

A class for simulating the kernel of T1 recovery functions,

(12)\[y = 1 - \exp(-x/x_\text{inv}).\]
Parameters:
  • kernel_dimension – A Dimension object, or an equivalent dictionary object.

  • dimension. (This dimension must represent the T2 decay) –

  • inverse_dimension – A list of Dimension objects, or equivalent dictionary objects representing the x-y coordinate grid.

kernel(supersampling=1)[source]

T2

class mrinversion.kernel.relaxation.T2(kernel_dimension, inverse_dimension)[source]

Bases: BaseRelaxation

A class for simulating the kernel of T2 decaying functions,

(13)\[y = \exp(-x/x_\text{inv}).\]
Parameters:
  • kernel_dimension – A Dimension object, or an equivalent dictionary object. This dimension must represent the T2 decay dimension.

  • inverse_dimension – A list of two Dimension objects, or equivalent dictionary objects representing the x-y coordinate grid.

kernel(supersampling=1)[source]

Return the kernel of T2 decaying functions.

Parameters:

supersampling – An integer. Each cell is supersampled by the factor supersampling.

Returns:

A numpy array.