1. A method for detecting when a tool contacts a wall of a region of interest of a patient, the method comprising the steps of: tracking the motion of the tool and creating a tool motion profile; calculating a correlation value representative of the correlation between the tool motion profile and a wall motion profile indicative of the motion of the wall; and determining when the correlation value exceeds a threshold indicative of contact of the tool with the wall of the region of interest.