There is provided a technique for obtaining a magnetic susceptibility-weighted image in which contrast difference of a tissue of interest and a surrounding tissue can be emphasized regardless of the positional relationship of the B0 direction and the imaging slice. A phase image is converted into a susceptibility map not depending on the B0 direction, and then a weighting image used for weighting is generated by using the susceptibility map. The weighting image to be generated is for emphasizing contrast of a tissue of interest and a surrounding tissue depending on the purpose. Then, by multiplication of the weighting image and an absolute image, a magnetic susceptibility-weighted image in which the magnetic susceptibility difference is emphasized depending on the purpose is obtained.