arXiv · 2512.16044
retinalysis-fundusprep: A python package for robust color fundus image bounds extraction
Abstract
Color fundus image (CFI) bounds detection and contrast enhancement are fundamental tasks in automatic CFI analysis. We present an open-source algorithm, published as a Python package, to automatically extract parametric bounds from color fundus images, and for applying contrast enhancement. The software has applications in automated biomarker calculation and AI systems. Bounds detection was implemented by detecting the CFI's contour via a shortest path algorithm on a polar transformation of the image. A second step detects points along the CFI circle robustly via a circle-fitting RANSAC algorithm. Straight boundaries are detected independently. Finally, the CFI is mirrored along its bounds before contrast enhancement to eliminate edge artifacts. We manually evaluated correctness on the EyeQ and Rotterdam Study datasets. Evaluation on the EyeQ CFI quality dataset revealed an error rate of 0.2% for our method, compared to 1.9% for previous work. On a sample of challenging CFI images from the Rotterdam Study, our method did not produce any mistakes. retinalysis-fundusprep is an improvement over existing publicly available code for CFI bounds detection. The improved reliability may allow for its use on a wider range of datasets without the need for manual validation.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Jose Vargas Quiros, Bart Liefers, Karin van Garderen, Eyened Reading Center, Caroline Klaver. 2025-12-17. retinalysis-fundusprep: A python package for robust color fundus image bounds extraction. https://arxiv.org/abs/2512.16044
Cite the original work for its findings. Save a collection to share your selection of sources.