Gamma-ray irradiation tests on CCD and CMOS sensors used in imaging techniques