A simple tool to fastly crop fundus images to a circle and center it. It uses cv2 and numpy to process single images.
[ ] Works on tensor images
[ ] Has batch support
See the usage.ipynb.
This is a wrapper for a part of the EyeQ preprocessing from Huazhu Fu et al., "Evaluation of Retinal Image Quality Assessment Networks in Different Color-spaces" (2020). The original code is available here.
@inbook{Fu_2019,
title={Evaluation of Retinal Image Quality Assessment Networks in Different Color-Spaces},
ISBN={9783030322397},
ISSN={1611-3349},
url={http://dx.doi.org/10.1007/978-3-030-32239-7_6},
DOI={10.1007/978-3-030-32239-7_6},
booktitle={Medical Image Computing and Computer Assisted Intervention – MICCAI 2019},
publisher={Springer International Publishing},
author={Fu, Huazhu and Wang, Boyang and Shen, Jianbing and Cui, Shanshan and Xu, Yanwu and Liu, Jiang and Shao, Ling},
year={2019},
pages={48–56} }