Techniques and systems for magnetic resonance imaging. An optical distance L1 between a maximum light-emitting position of a light-emitting layer and a first end portion satisfies L1=tL1+a1 and \u03bb=\u2212\u03a61+m1. Thus the rotary detector is prevented from being damaged or deformed due to shocks.