Joint retina segmentation and classification for early glaucoma diagnosis