The potential thus depends on the grey tone along the road,
on the contrast between the road and the image background,
and on local curvature.
In our applications, we define the potential as the sum of three terms corresponding to the grey level, contrast, and curvature.