A method for use during a procedure on a body. The method generates a
display representing relative positions of two structures during the
procedure. The method comprises the steps of storing an image data set in
memory, the image data set representing the position of the body based on
scans taken of the body prior to the procedure; reading the image data
set stored in the memory, the image data set having a plurality of data
points in known relation to a plurality of reference points for at least
one of the two structures; placing one or more magnetic field sensors in
known relation to the reference points of the two structures; generating
a magnetic field; detecting the magnetic field with the magnetic field
sensors; ascertaining the locations of the sensors based upon the
magnetic field detected by the sensors and processing the locations of
the sensors to generate a displaced image data set representing the
relative position of the two structures during the procedure; and
generating a display based on the displaced image data set illustrating
the relative position of the two structures during the procedure.