apply_rtm2_to_all_voxels#

petpal.kinetic_modeling.parametric_images.apply_rtm2_to_all_voxels(tac_times_in_minutes: numpy.ndarray, tgt_image: numpy.ndarray, ref_tac_vals: numpy.ndarray, mask_img: numpy.ndarray, method: str = 'mrtm2', **analysis_kwargs) numpy.ndarray#

Generates parametric images for 4D-PET data using the SRTM2 reference tissue method.

Parameters:
  • tac_times_in_minutes (np.ndarray) – A 1D array representing the reference TAC and PET frame times in minutes.

  • tgt_image (np.ndarray) – A 4D array representing the 3D PET image over time. The shape of this array should be (x, y, z, time).

  • ref_tac_vals (np.ndarray) – A 1D array representing the reference TAC values. This array should be of the same length as tac_times_in_minutes.

  • mask_img (np.ndarray) – A 3D array representing the brain mask for tgt_image, where brain regions are labelled 1 and non-brain regions are labelled 0. This is made necessary in order to save time during computation.

Returns:

params_img (np.ndarray)

A 4D array with RTM parameter fit results based on the supplied

method.