An image processing unit for correction of distortion in image data records which are recorded via a magnetic resonance scanner, wherein the magnetic resonance scanner has a measurement volume in which there is a basic magnetic field which has known local discrepancies from a nominal value, comprising:
- means for loading an image data record, recorded by the magnetic resonance scanner using known recording parameters;
- means for calculating local shifts of image elements in the loaded image data record from the known local discrepancies of the basic magnetic field and the known recording parameters;
- means for creating a corrected image data record on the basis of the calculated local shifts and the loaded image data record;
- and
- means for at least one of displaying and storing the corrected image data record.