A system is disclosed that allows for determining a position of an instrument in an object space. The position may include a three-dimensional location and at least one degree of freedom of orientation, or any appropriate number of degrees of freedom. The tracked position may be based on imaging the instrument, including imaging an external contour of the instrument. The movement of the instrument can be determined based on a three-dimensional determination of a movement of the instrument contour