According to one embodiment, Switching units are configured to switch the intensity of X-rays to be generated by an anode. An X-ray controller controls the switching units to switch the intensity of the X-rays to be generated by the anode, and controls a rotor control power generator to rotate the anode. When a value approximately equal to an integer multiple of an X-ray intensity switching period designated by a user coincides with the rotor rotation period, the X-ray controller controls the rotor control power generator to shift the thermoelectron collision ranges of the anode in the first turn from thermoelectron collision ranges in the second turn.