Disclosed is a computer-implemented medical data processing method for determining an orientation of an electrode, the electrode being configured for electrically stimulating an anatomical structure of a patient and comprising a rotational orientation marker, the method comprising executing, on at least one processor of at least one computer, steps of: a) acquiring (S1.1), at the at least one processor, rotational image data describing two-dimensional medical images of the anatomical structure and the electrode, the two-dimensional medical images having been taken with a two-dimensional medical imaging apparatus during rotation of the medical imaging apparatus relative to the anatomical structure, the rotational image data further describing, for each of the two-dimensional medical images, an imaging perspective relative to the anatomical structure associated with the respective two-dimensional medical image; b) determining (S1.2), by the at least one processor and based on the rotational image data, rotational orientation data describing the rotational orientation of the electrode in the reference system of the two-dimensional medical images; c) acquiring (S1.3), at the at least one processor, tomographic image data describing a set of tomographic medical images of the anatomical structure; d) determining (S1.4), by the at least one processor and based on the rotational image data and the tomographic image data and the rotational orientation data, electrode orientation data describing a rotational orientation of the electrode in a reference system of the tomographic medical image data.