Learning to Segment Neurons with Non-local Quality Measures