A computer-implemented medical method of generating an anonymized medical image of an anatomical body part of a patient, the method comprising the following steps: a) initial patient image data is acquired which describes an initial geometry of the image constituents in a region of the medical image representing the anatomical body part; b) atlas data is acquired which describes an image-based model of an anatomical body part having a part which anatomically corresponds and a part which does not anatomically correspond to the anatomical body part of the patient; c) correspondence mapping data is determined based on the initial patient image data and the atlas data, wherein the correspondence mapping data describes a positional mapping, called correspondence mapping, between the image constituents in a region of the medical image representing the anatomical body part and the anatomically corresponding part of the image-based model; d) anonymising transformation data is determined based on the correspondence mapping data, wherein the anonymising transformation data describes an anonymising transformation which is determined by altering the correspondence mapping such that the anonymising transformation describes a positional mapping between an image constituent in the region of the medical image defining the anatomical body part and the anatomically non-corresponding part of the image-based model, called non-corresponding body part; e) anonymised patient image data is determined based on the initial patient image data and the atlas data and the correspondence mapping data and the anonymising transformation data, wherein the anonymised patient image data describes an image representation of the non-corresponding body part at the position of at least one of the image constituents in the region of the medical image representing the anatomical body part, wherein the correspondence mapping is invertible and the anonymised patient image data is determined by applying the inverse of the altered correspondence mapping to the part of the image-based model defining the non-corresponding body part. a) initial patient image data is acquired which describes an initial geometry of the image constituents in a region of the medical image representing the anatomical body part; b) atlas data is acquired which describes an image-based model of an anatomical body part having a part which anatomically corresponds and a part which does not anatomically correspond to the anatomical body part of the patient; c) correspondence mapping data is determined based on the initial patient image data and the atlas data, wherein the correspondence mapping data describes a positional mapping, called correspondence mapping, between the image constituents in a region of the medical image representing the anatomical body part and the anatomically corresponding part of the image-based model; d) anonymising transformation data is determined based on the correspondence mapping data, wherein the anonymising transformation data describes an anonymising transformation which is determined by altering the correspondence mapping such that the anonymising transformation describes a positional mapping between an image constituent in the region of the medical image defining the anatomical body part and the anatomically non-corresponding part of the image-based model, called non-corresponding body part; e) anonymised patient image data is determined based on the initial patient image data and the atlas data and the correspondence mapping data and the anonymising transformation data, wherein the anonymised patient image data describes an image representation of the non-corresponding body part at the position of at least one of the image constituents in the region of the medical image representing the anatomical body part, wherein the correspondence mapping is invertible and the anonymised patient image data is determined by applying the inverse of the altered correspondence mapping to the part of the image-based model defining the non-corresponding body part.