weighted_sum_computation#

petpal.utils.math_lib.weighted_sum_computation(pet_series: ants.core.ANTsImage | numpy.ndarray, frame_duration: numpy.ndarray, half_life: float, frame_start: numpy.ndarray, decay_correction: numpy.ndarray)#

Weighted sum of a PET image based on time and re-corrected for decay correction.

Parameters:
  • image_frame_duration (np.ndarray) – Duration of each frame in pet series

  • half_life (float) – Half life of tracer radioisotope in seconds.

  • pet_series (np.ndarray) – 4D PET image series, as a data array.

  • image_frame_start (np.ndarray) – Start time of each frame in pet series, measured with respect to scan TimeZero.

  • image_decay_correction (np.ndarray) – Decay correction factor that scales each frame in the pet series.

Returns:

image_weighted_sum (np.ndarray)

3D PET image computed by reversing decay correction

on the PET image series, scaling each frame by the frame duration, then re-applying decay correction and scaling the image to the full duration.

See also

  • petpal.image_operations_4d.weighted_series_sum(): Function where this is implemented.