Presented are methods for determining the position and orientation of medical tools inserted through a working channel of an endoscopic device or through a trocar and visible in images gathered by the visualization systems and methods for conducting measurements with said tools.