[Lab02]: Implement halftoning and segmentation.