摘要 |
When a detection-target subject is imaged with an image pickup device having line-defect pixels, the detection-target subject is imaged, with the image pickup device or the detection-target subject rotated at a predetermined angle so that the edge of one side of the detection-target subject is not parallel to each of horizontal and vertical scanning lines of the image pickup device, and a gray-scale image is captured by a control apparatus. In the gray-scale image, the luminance of each of the line-defect pixels is corrected by interpolation with luminances of pixels adjacent to both sides of the line-defect pixel. The gray-scale image is subjected to sub-pixel processing to detect the edge of the detection-target subject. When the detection-target subject is a component in a rectangular shape, rotation is made so that four sides are not parallel to each of the horizontal and vertical scanning lines of the image pickup device.
|