An automatic method of correcting radio-frequency (RF) inhomogeneity in magnetic resonance images is presented. The method considers that image intensity variation due to radio-frequency inhomogeneity contains not only low frequency components, but also high frequency components. The variation is regarded as a multiplication of low frequency (capacity variation of coil) and the frequency of object (true image). The efficiency of the proposed method is illustrated with the aid of both phantom and physical images. The impact of the inhomogeneity correction on brain tissue segmentation is studied in detail. The results show significant improvement of the tissue segmentation after inhomogeneity correction.