A computer-implemented method for training a generator that is implemented in a computer-implemented artificial neural network, wherein the generator is trained to transfer real two-dimensional medical images from a real image domain into a synthetic image domain, the method comprising:
- receiving a plurality of three-dimensional medical images of different patients and a plurality of two-dimensional medical radiographs of different patients;
- using the generator, creating a plurality of synthetic two-dimensional radiographs based on the received plurality of three-dimensional medical images;
- using a computer-implemented discriminator, discriminating the synthetic two-dimensional radiographs from the synthetic-looking two-dimensional radiographs;
- and
- in response to the discriminator successfully discriminating between the real-looking synthetic radiographs and the synthetic-looking real radiographs, adapting the generator to reduce an ability of the discriminator to discriminate therebetween.