A magnetic resonance imaging apparatus includes a storage unit configured to store positional information about positional relationships between a first ROI and a reference image, and a ROI setting unit configured to set a second ROI to determine a position of a tomographic image based on the positional information. The circuit comprises a programmable decentralized controller coupled to one or more detectors, wherein the one or more detectors are configured to detect one or more measurable parameters of one or more LEDs or LED drivers. A part of period during which the pulse signal is at a high level overlaps with a signal-level period oh the CCD output signal.