A method and a device produce X-ray images of objects, according to which artifacts caused by scattered radiation are corrected. To this end, a modulator field is used, that can be moved from a first position to a second position, thereby enabling modulator field areas with small and relatively large X-ray attenuation coefficients to be interchanged. An initial amplitude-modulated projection of the object is respectively produced in each of the two positions, and a scattered image associated with the projection is respectively calculated. This is especially suitable for rapid CT scans.