Patent ID: 8150177
Filing Date: 2012-04-03
Classification: H04N

Abstract:
1. A method of detecting a defect in an imaged object, the method comprising: detecting a first edge and the directions of the first edge from a code book preparation image having the first edge; cutting, in preset sizes, first regions out of the code book preparation image to generate a plurality of first image blocks, each of the first regions surrounding and including an edge point of the detected first edge; executing quantization processing regarding the first image blocks as multidimensional vectors to form code blocks for each of the directions of the first edge; allocating identification codes to the code blocks to prepare a code book; acquiring an image of the imaged object; detecting a second edge which is the edge of the imaged object and the directions of the second edge from the image of the imaged object; cutting, in preset sizes, second regions out of the image of the imaged object to generate a plurality of second image blocks, each of the second regions surrounding and including an edge point of the detected second edge; selecting, from the code book, code blocks corresponding to the directions of the second edge to match these code blocks with the second image blocks, and defining the code blocks which have obtained matching scores exceeding a predetermined threshold value as code blocks similar to the second image blocks; and taking, from the code book, the similar code blocks to write these code blocks into a new image region along the directions of the second edge and around the coordinates of the second edge points, wherein when the second image blocks in which the matching scores are equal to or less than the predetermined threshold value are present in the matching of the second image blocks with the code blocks, the second image blocks are output as they are instead of the code blocks similar to the second image blocks, and the second image blocks are written into the new image region around the coordinates of the second edge points corresponding to a defective place.