Source code for resomapper.model_fitting.MTRfit
import numpy as np
[docs]
def compute_MTR_map(mton_image: np.array, mtoff_image: np.array):
"""Computes the formula required to get MTR map."""
mtr_map = 100 * (1 - (mton_image / mtoff_image))
mtr_map[mtr_map < 0] = 0
return mtr_map