Code for TMI 2018 "Joint Optic Disc and Cup Segmentation Based on Multi-label Deep Network and Polar Transformation"
Project homepage:http://hzfu.github.io/proj_glaucoma_fundus.html
pip install -r requirements.txt
pip install .
OpenCV will need to be installed separately.
- The code is based on: TensorFlow 1.14 (with Keras) + Matlab
- The deep output is raw segmentation result without ellipse fitting. The Matlab code is the ellipse fitting and CDR calculation (by using PDollar toolbox: https://pdollar.github.io/toolbox/).
- You can run the 'Step_3_MNet_test.py' for testing any new image directly.
- We also provided the validation and test results on REFUGE dataset in 'REFUGE_result' fold.
- Note: Due to the 'scipy.misc.imresize' in SciPy 1.0.0 has been removed in SciPy 1.3.0, the original trained model 'Model_MNet_REFUGE.h5' is not suitable. If you want to segment disc/cup from fundus image, you can consider our newest methods: CE-Net and AG-Net, which obtain the better performances and are also released in:
- CE-Net: https://github.com/Guzaiwang/CE-Net
- AG-Net: https://github.com/HzFu/AGNet
- A pytorch implementation of M-Net could be found in AG-Net: https://github.com/HzFu/AGNet
Main files:
- 'Step_1_Disc_Crop.py': The disc detection code for whole funuds image.
- 'Step_2_MNet_train.py': The M-Net training code.
- 'Step_3_MNet_test.py': The M-Net testing code.
- 'Step_4_CDR_output.m': The ellipse fitting for disc and cup, and CDR calculation.
If you use this code, please cite the following papers:
- Huazhu Fu, Jun Cheng, Yanwu Xu, Damon Wing Kee Wong, Jiang Liu, and Xiaochun Cao, "Joint Optic Disc and Cup Segmentation Based on Multi-label Deep Network and Polar Transformation", IEEE Transactions on Medical Imaging (TMI), vol. 37, no. 7, pp. 1597–1605, 2018. [PDF]
- Huazhu Fu, Jun Cheng, Yanwu Xu, Changqing Zhang, Damon Wing Kee Wong, Jiang Liu, and Xiaochun Cao, "Disc-aware Ensemble Network for Glaucoma Screening from Fundus Image", IEEE Transactions on Medical Imaging (TMI), vol. 37, no. 11, pp. 2493–2501, 2018. [PDF]
There are also some related works for medical image segmentation for your reference:
- "Attention Guided Network for Retinal Image Segmentation," in MICCAI, 2019. [PDF] [Github Code]
- “CE-Net: Context Encoder Network for 2D Medical Image Segmentation,” IEEE TMI, 2019. [PDF] [Github Code]
Note: for ORIGA and SCES datasets
Unfortunately, the ORIGA and SCES datasets cannot be released due to the clinical policy. But, here is an other glaucoma challenge, Retinal Fundus Glaucoma Challenge (REFUGE), including disc/cup segmentation, glaucoma screening, and localization of Fovea.
License
The code is released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License for NonCommercial use only. Any commercial use should get formal permission first.
Update log:
- 19.01.22: Added training code, and uploaded the results on REFUGE dataset.
- 18.06.30: Added ellipse fitting code (based on Matlab), and Fixed the bug for macular center fundus.
- 18.06.29: Added disc detection code (based on U-Net).
- 18.02.26: Added CDR calculation code (based on Matlab).
- 18.02.24: Released the code.