Patent ID: 8213061

Claim:
A detection device comprising: a setting component that, in a photoelectric conversion element group that is intended for photoelectric conversion elements where plural photoelectric conversion pixels are arrayed at least in one direction and that has a predetermined reading width as a result of plural photoelectric conversion elements being arrayed in the one direction, sets, as an initial setting and in joints between the photoelectric conversion elements, interpolation pixels that are interpolated by reading information that surrounding photoelectric conversion pixels have read; a measuring component that measures joint quantities between the photoelectric conversion elements that are dependent on precision when arraying the plural photoelectric conversion elements; an accumulating component that accumulates error quantities of the joints that are obtained from the joint quantities that have been measured by the joint quantity measuring component and a reference quantity; a determining component that determines whether or not the accumulated error quantity in the joint error quantity accumulating component has exceeded an allowable range; and an increasing/decreasing component that increases/decreases, on the basis of a direction of error, interpolation pixels between specific photoelectric conversion elements when it has been determined by the determining component that the accumulated error quantity in the joint error quantity accumulating component has exceeded the allowable range.