A method and system for homogenizing a main magnetic field of a magnetic
resonance imaging ("MRI") system includes obtaining a main magnetic field
distribution generated by the MRI system, obtaining at least one shim
magnetic field distribution generated by at least one shim coil of the
MRI system, and determining a corresponding shim current based on a
relationship between the main magnetic field distribution and the at
least one shim magnetic field distribution.