Optimized Connected Components Labeling with Pixel Prediction