Retinal layer segmentation of macular OCT images using boundary classification