Even when there is a static magnetic field inhomogeneity and using a two-dimensional selective excitation method to obtain a high quality image. Thus, in a selective excitation region excited by 2DRF, to reflect the imaging sequence to measure the static magnetic field inhomogeneity in the region of interest, particularly the use of the measurement result 2DRF. For example, to set the frequency of irradiation 2DRF the resonant frequency of the magnetization obtained from the measurement results. In addition, applying a gradient magnetic field shim to compensate for the nonuniformity of magnetization obtained from the measurement results. Applies only imaging sequence using 2DRF, in the other imaging sequence, the irradiation frequency set by the conventional method, the use of shims gradient, these.静磁場不均一がある場合であっても、2次元選択励起法を用い、高品質の画像を得る。そこで、2DRFで励起する選択励起領域の中で、特に着目する領域の静磁場不均一を計測し、計測結果を2DRFを用いる撮影シーケンスに反映する。例えば、計測結果から得た磁化の共振周波数を2DRFの照射周波数に設定する。また、計測結果から得た磁化の不均一を補正するようシム傾斜磁場を印加する。これらを、2DRFを用いる撮影シーケンスのみ適用し、他の撮影シーケンスでは、従来手法で設定した照射周波数、シム傾斜磁場を用いる。