You are explicitly setting the PET display values via the parameter fixed_window_level=(215, 50). You will need to change these settings to something that is appropriate for your data. First, try without explicitly setting the value, internally this defaults to using the whole intensity range (as done below). If this doesn’t work, you can try various settings changing the windowMinimum, windowMaximum values:
import SimpleITK as sitk
file_name =
fixed_image = sitk.ReadImage(file_name)
# Modify the following two lines
windowMinimum = float(sitk.GetArrayViewFromImage(fixed_image).min())
windowMaximum = float(sitk.GetArrayViewFromImage(fixed_image).max())
fixed_window_level = (windowMaximum-windowMinimum, (windowMaximum+windowMinimum)/2)
sitk.Show(sitk.Cast(sitk.IntensityWindowing(fixed_image, windowMinimum, windowMaximum, outputMinimum=0, outputMaximum=255), sitk.sitkUInt8))