Patterned fabrics are generally constructed from the periodic repetition of a primitive pattern unit. Repeat pattern segmentation of printed fabrics has a very significant impact on the pattern retrieval and pattern defect detection. In this paper, we propose a new approach for repeat pattern segmentation by employing the adaptive template matching method. In contrast to the traditional method for template matching, the proposed algorithm first selects an adaptive size template image in the repeat pattern image based on the size of the original image and its local maximum edge density. Then it uses the sum of absolute differences as the matching features to identify the matched regions in the original image, and the minimum envelope border of the primitive pattern, typically as a parallelogram, can be determined from the results of the four adjacent matched templates. Finally, image traversal base on the obtained parallelogram is implemented over the original image using minimum information loss theory to produce a well-segmented primitive pattern with a complete edge structure. The results from the experiments conducted using an extensive database of real fabric images show that the proposed algorithm has the advantage of rotation invariance and scaling invariance and will not be affected when the background or foreground color is changed.
Read full abstract