miblab_dl.fatwater#

miblab_dl.fatwater(op_phase, in_phase, te_o=None, te_i=None, t2s_w=30, t2s_f=15, tr=None, fa=None, t1_w=1400, t1_f=350, cache=None)[source]#

Compute fat and water maps from opposed-phase and in-phase arrays

Parameters:
  • op_phase (np.ndarray) – opposed phase data

  • in_phase (np.ndarray) – in-phase data

  • model (str) – path to the model files

  • cache (str, optional) – directory to use for storing model weights and temp files This defaults to the standard cache dir location of the operating system.

Returns:

numpy arrays of the same shape and type as the input arrays.

Return type:

fat, water