Deformation detection and tracking on continuous and deformable medical tools