1. A computer-implemented method for detecting phase-encoding ghosting in a magnetic resonance (MR) image of an object to be imaged and mitigating corresponding artifact in the MR image, the computer-implemented method comprises the steps of: acquiring magnetic resonance imaging (MRI) raw data of the object by means of a MRI apparatus, the MRI apparatus having multiple receiver channels for acquiring the MRI raw data; calculating an artifact map of at least one part of the object to be imaged from the MRI raw data; creating an outlier mask representing detected phase-encoding artifact in the artifact map; and mitigating phase-encode ghosting in the MR image by using a previously obtained artifact map and the outlier mask for obtaining an improved MR image.