1. A magnetic resonance imaging apparatus comprising: an imaging unit configured to acquire image data after applying a radio frequency (RF) pre-pulse configured for controlling contrast when the image data is subsequently acquired; and a compensation unit configured to suppress a remnant eddy current magnetic field having different intensities according to slice positions, such that the remnant eddy current magnetic field becomes substantially zero at the pre-pulse application time and remnant eddy current magnetic field is caused by an eddy current generated by at least one gradient magnetic field applied before applying the pre-pulse.