In consequence, since a line for computing a threshold value is different from a line for inspection, the throughput of the inspection is reduced to a certain degree.
In the case of a low chip count, a threshold value can be computed by using image data spread over a plurality of lines.