Circle segmentation and degree measurement