Moreover, it is possible to execute the foregoing control operations in the imaging device of the exemplary embodiment not in the hardware configuration but by software such as a computer program, and it is also possible to record the above program in an optical recording medium, a magnetic recording medium, a magneto-optical recording medium, or a recording medium of a semiconductor or the like a