The invention relates to a method of MR imaging of an object (10). It is an object of the invention to enable MR imaging in the presence of motion of the imaged object, wherein full use is made of the acquired MR signal and a high-quality MR image essentially free from motion artefacts is obtained. The method of the invention comprises the steps of:- generating MR signals by subjecting the object (10) to an imaging sequence comprising RF pulses and switched magnetic field gradients;- acquiring the MR signals as signal data over a given period of time (T);- subdividing the period of time into a number of successive time segments (S0, S1, S2, ... Sn);- deriving a geometric transformation (DVF1, DVF2, ... DVFn) in image space for each pair of consecutive time segments (S0, S1, S2, ... Sn), which geometric transformation (DVF1, DVF2, ... DVFn) reflects motion occurring between the two time segments of the respective pair; andreconstructing an MR image from the signal data, wherein a motion compensation is applied according to the derived geometric transformations (DVF1, DVF2, ... DVFn). Moreover, the invention relates to an MR device (1) and to a computer program for an MR device (1).