A method, including receiving a computerized tomography (CT) image of voxels of a subjects head, and analyzing the image to identify respective locations of the subjects eyes in the image, so defining a first line segment joining the respective locations. The method includes identifying a voxel subset overlaying bony sections of the head, lying on a second line segment parallel to the first line segment and on a third line segment orthogonal to the first line segment. A magnetic tracking system configured to measure positions on the subjects head is activated, and a probe, operative in the system, is positioned in proximity to the bony sections to measure positions of a surface of the head overlaying the bony sections. A correspondence between the positions and the voxel subset is formed, and a registration between the CT image and the magnetic tracking system is generated in response to the correspondence.