Computer-implemented method for correcting an X-
ray image (1) based on imaging by an X-
ray device (2) with an X-
ray source (3) and an X-ray
detector (4) during a first time interval (6) and specifying a respective X-ray image value (8) for at least one image point (7), comprising the steps: - Receiving the X-ray image (1), - Receiving several dark images (9), wherein the respective dark image (9) is based on an image
data acquisition by the X-ray
detector (4) during a respective sub-interval of a second time interval (10) preceding the first time interval (6), during which no X-
ray radiation is irradiated onto the X-ray
detector (4), and indicates a respective dark image value (11) for the respective image point (7), - Predicting a respective night
luminescence value (12) for the respective pixel (7) in the X-ray image (1), depending on the dark frame values (11) of several of the dark frames (9) for the respective pixel (7), - Correcting the X-ray image (1) by determining a respective corrected X-ray image value (14) for the respective image point (7) depending on the respective X-ray image value (8) and the respective
afterglow value (12).