average_across_4d_frames#

petpal.input_function.idif_necktangle.average_across_4d_frames(pet_4d_data: numpy.ndarray, start_frame: int, end_frame: int) numpy.ndarray#

Calculates the mean frame across the specified range of frames in the 4-dimensional PET data.

Parameters:
  • pet_4d_data (np.ndarray) – 4-dimensional array representing the PET data.

  • start_frame (int) – The starting frame index for the mean calculation.

  • end_frame (int) – The ending frame index for the mean calculation.

Returns:

mean_frame (np.ndarray) – The mean frame calculated from the specified range of frames.