1. A magnetic resonance imaging system comprising data processing means of magnetic resonance data, wherein the data processing means comprises edge-preserving filter processing means for spectroscopic imaging, and the edge-preserving filter processing means for spectroscopic imaging executes processing comprising the steps of: calculating spectral similarity in spatial neighborhoods (spatially neighboring voxels) at each voxel in spectroscopic imaging data, which comprises calculating similarity in only a local spectrum concerning a chemical shift component of each voxel in the spectroscopic imaging data; calculating a spatial weight according to a spatial position relation between each voxel and the neighborhood; calculating a spectral weight according to the spectral similarity; multiplying the spatial weight and the spectral weight and calculating a spatio-spectral weight; and conducting weighted smoothing for compounding spectra of spatial neighborhoods (spatially neighboring voxels) according to the spatio-spectral weight.