is included in the nuclear magnetic resonance signal, to remove the global phase changes due to the static magnetic field inhomogeneity. To that end, the phase component caused nuclear magnetic resonance signals due to the static magnetic field inhomogeneity is, paying attention to that a predetermined frequency band (low frequency band), a phase component of the static magnetic field inhomogeneity attributed to the frequency band , to remove from the generated image from the nuclear magnetic resonance signal of this image. Predetermined frequency band of the static magnetic field inhomogeneity attributed to the phase component is determined from the nuclear magnetic resonance signals obtained by the preliminary imaging.核磁気共鳴信号に含まれる、静磁場不均一に起因する大域的な位相変化を除去する。そのために、静磁場不均一に起因して核磁気共鳴信号に生じる位相成分が、所定の周波数帯域(低周波帯域)であることに着目し、静磁場不均一に起因する周波数帯域の位相成分を、本撮像の核磁気共鳴信号から生成した画像から除去する。静磁場不均一に起因する位相成分の所定の周波数帯域は、予備撮像により取得した核磁気共鳴信号から求める。