The invention relates to a method of relating a position (pos(selected)) of an anatomical structure (3) and a position of an image feature representing the anatomical structure in a medical image (11), the method being constituted to be executed by a computer and comprising: a) acquiring information about the position of a medical imaging apparatus (1) at the beginning (pos(start)) and at the end (pos(end)) of acquiring medical image information describing a medical image (11) of at least a part of a patient's body (2) comprising the anatomical structure (3), wherein the medical imaging apparatus (1) is moved while it is used for acquiring the medical image information; b) acquiring imaging information about a relationship between the movement of the medical imaging apparatus and the acquisition of the medical image information; c) acquiring, based on the position of the medical imaging apparatus at the beginning (pos(start)) and at the end (pos(end)) of acquiring the medical image information, information about a predominant direction of movement (z) of the medical imaging apparatus (1); d) acquiring information about the position of a pointer means (12) in the predominant direction of movement (z); e) determining, based on the information about the position of the medical imaging apparatus (1) at the beginning (pos(start)) and at the end (pos(end)) of acquiring the medical image information and based on the information about the position of the pointer means (12) and based on the imaging information, information about a transformation between the position in the medical image (11) of an image feature representing the anatomical structure (3) and the position of the anatomical structure (3) in a navigation reference system (17).