摘要:
A frequency distribution or histogram M (L.sub.j-1, L.sub.j) of differences between gradation levels (L.sub.j-1, L.sub.j) of adjacent pixels (P.sub.j-1, P.sub.j) in an image is obtained, and the number of level-changes for each tentative threshold level L.sub.j is determined as a function of the histogram of the level differencies. By using the number of level-changes, an optimum binarization threshold level is set by means of an adaptive thresholding method. Since the number of level-changes is calculated from the histogram of the level-differencies without practical binarization for each threshold level, the amount of calculations is not dependent on the number of pixels but on the number of gradation levels. The calculations for setting the threshold level for the binarization of the image are achieved at high speeds by a small-scale hardware.
摘要:
A device for inspecting a printed board has linear image sensors. The image sensors read the image of the printed board on respective image reading positions (CA0, CB0, CA1, CB1), while scanning the image. A predetermined tolerance range (RY) for image-reading positions is previously determined so that the respective image reading positions are included in the tolerance range. Image signals obtained in respective image sensors are delayed by respective delay times. The respective delay times are previously determined in proportion to the deviations between the image reading positions and a reference position (RLY1), where the reference position is defined on the rear end (EPY1) or behind the tolerance range in the scanning direction (-Y). Through the delay process, all of the image signals are corrected to compensate for the respective deviations in the image reading positions.