A medical imaging method comprising generating a radiation at a first energy level by a radiation source, generating a radiation at a second energy level different from the first energy level by the radiation source, emitting the generated radiations at an output of the radiation source towards a detector, and blocking or diverting the emitted radiations during at least one intermediate phase during which the radiation source switches in a transient way from one of the first energy level and the second energy level to the other of the first energy level and the second energy level.