PaperComputing Multi-Colored Polygonal Masks in Pipeline Architecture and Its Application to Automated Visual Inspection