Method for the acquisition and processing of measurement data by a combined magnetic resonance and X-ray device , wherein several X-ray images are acquired in succession by a X-ray acquisition unit and processed to determine movement data describing a movement of a test subject or at least one region of the test subject during a given time interval, wherein several data points representing a magnetic resonance signal strength for different phase encodings are acquired by a magnetic resonance acquisition unit during the time interval or an equivalent further time interval, in which the same movement pattern of the test subject or the region is expected, and wherein the data points are processed to generate at least one real space image as a function of the movement data, wherein at least a subset of the data points representing a magnetic signal strength represents a signal strength at respective coordinates of a common coordinate system and the processing of the data points includes a collective transformation of these data points to real space to form the real space image, wherein a motion correction step that modifies at least one of the data points and/or its respective coordinates as a function of the movement data determined by processing the x-ray images is performed prior to the transformation, wherein the motion correction step involves - a modification of a phase information associated with the data point as a function of the movement data describing a movement of the test subject or the region of the test subject to compensate this movement prior to the transformation to real space, wherein the transformation to real space is dependent on the respective phase information of the data points, and/or - a shifting of the position of the data point in the common coordinate system in the direction of a coordinate that encodes spatial frequencies and that corresponds to the direction in which a phase encoding or a frequency encoding gradient was applied as a function of the movement data describing a homogeneous expansion or compression of a region of the test subject to compensate the expansion or compression prior to the transformation to real space, and/or - a rotation of the data point about the center of the k-space as a function of the movement data describing a rotation of the test subject or the region of the test subject about an isocenter of the gradient coils used to scan through the k-space prior to the transformation to real space. - a modification of a phase information associated with the data point as a function of the movement data describing a movement of the test subject or the region of the test subject to compensate this movement prior to the transformation to real space, wherein the transformation to real space is dependent on the respective phase information of the data points, and/or - a shifting of the position of the data point in the common coordinate system in the direction of a coordinate that encodes spatial frequencies and that corresponds to the direction in which a phase encoding or a frequency encoding gradient was applied as a function of the movement data describing a homogeneous expansion or compression of a region of the test subject to compensate the expansion or compression prior to the transformation to real space, and/or - a rotation of the data point about the center of the k-space as a function of the movement data describing a rotation of the test subject or the region of the test subject about an isocenter of the gradient coils used to scan through the k-space prior to the transformation to real space. <EOS>