An apparatus comprises processing circuitry configured to receive first image data; receive second medical image data; and apply a transformation regressor to perform a registration process to obtain a predicted displacement that is representative of a transformation between the first image data and the second image data; wherein the transformation regressor is trained in combination with a discriminator in an adversarial fashion by repeatedly alternating a transformation regressor training process in which the transformation regressor is trained to predict displacements, and a discriminator training process in which the discriminator is trained to distinguish between predetermined displacements and displacements predicted by the transformation regressor.