weighted_sum_for_suv#

petpal.preproc.standard_uptake_value.weighted_sum_for_suv(input_image_path: str, output_image_path: str | None, start_time: float = 0, end_time: float = -1) ants.ANTsImage#

Function that calculates the weighted series sum for a PET image specifically for calculating the standard uptake value (SUV) of the image.

Parameters:
  • input_image_path (str) – Path to a 4D PET image which we calculate the sum on.

  • output_image_path (str) – Path to which output image is saved. If None, returns calculated image without saving.

  • start_time – Time in seconds from the start of the scan from which to begin sum calculation. Only frames after selected time will be included in the sum. Default 0.

  • end_time – Time in seconds from the start of the scan from which to end sum calculation. Only frames before selected time will be included in the sum. If -1, use all frames after start_time in the calculation. Default -1.

Returns:

weighted_sum_img (ants.ANTsImage) – 3D image resulting from the sum calculation.