Created
March 14, 2023 21:24
Center Unif ROI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pylinac | |
ct = pylinac.CatPhan504.from_demo_images() | |
ct.analyze() | |
data = ct.results_data() | |
center_unif_roi = data.ctp486.rois['Center'] | |
for name, roi in data.ctp486.rois.items(): | |
if name == 'Center': | |
continue | |
if abs(roi.value - center_unif_roi.value) > 30: | |
print(f"ROI {name} was over the threshold of 30 HU") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment