A method (126) for generating an image of an object from measurement data, wherein the measurement data were obtained by an imaging modality using ionizing radiation, wherein the measurement data were modified by scatter radiation. Herein, the method comprises the steps of: - providing at least two individual sets of measured data, wherein each of the sets of the measured data is provided as a matrix (112) having a plurality of matrix elements (142), wherein each of the matrix elements (142) corresponds to at least one individual detector element designated for detecting ionizing radiation, wherein a signal measured by the individual detector element in an energy bin (136) is assigned as a value for each matrix element (142), wherein the individual sets of the measured data differ with respect to each other by their corresponding energy bin (136); - using the at least two individual sets of measured data as an input to a procedure (118) for determining a correction image (128) for the correction of the modification of the measured data by the scatter radiation as obtained during a training phase, whereby the image of the object is generated by using the at least two individual sets of measured data in the procedure (118), wherein the procedure (118) comprises taking into account a neighborhood of each matrix element (142); and - outputting the image of the object generated from the measurement data. This method (126) allows generating the image of the object from the measurement data in more reliable manner.L'invention concerne un procédé (126) pour générer une image d'un objet à partir de données de mesure, les données de mesure étant obtenues par une modalité d'imagerie à l'aide d'un rayonnement ionisant, les données de mesure ayant été modifiées par un rayonnement de diffusion. Le procédé comprend les étapes consistant à : - fournir au moins deux ensembles individuels de données mesurées, chacun des ensembles des données mesurées étant fourni sous la forme d'une