Good evening,
Trying to compare 2 images (chair patterns). Getting error message about max. See below. Am I missing an input into the command?
Thanks,
Steve
ref = image.load(r"C:\Users\Caitlin\PF\Image\Ref_6x_Chair.dcm")
eval = image.load(r"C:\Users\Caitlin\PF\Image\6x_Chair.dcm")
gamma = image.gamma_2d(reference=ref,evaluation=eval, dose_to_agreement=2, distance_to_agreement=3,global_dose=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Caitlin\AppData\Roaming\Python\Python311\site-packages\pylinac\core\image.py", line 1997, in gamma_2d
threshold = reference.max() / 100 * dose_threshold
^^^^^^^^^^^^^
AttributeError: 'DicomImage' object has no attribute 'max'. Did you mean: 'cax'?