A modified spin-echo pulse sequence is described that enables accurate T2 measurements to be made in NMR microimaging experiments. The modified sequence eliminates cumulative diffusion losses that lead to an underestimation of the T2 relaxation time using conventional spin-echo pulse sequences. The approach is theoretically justified and confirmed in comparative experiments on phantoms.