We introduce a measurement (the discrepancy) of the minimum energy needed to transform from a standard parametrized planar curve c 0 to an observed curve c 1 . To this end, we say that a curve of transformations in the special Euclidean group SE (2) is admissible if it maps the source curve to the target curve under the point-wise action of SE (2) on the plane. After endowing the group SE(2) with a leftinvariant metric, we define a relative geodesic in SE(2) to be a critical point of the energy functional associated to the metric, over all admissible curves. The discrepancy is then defined as the value of the energy of the minimizing relative geodesic. In the first part of the paper, we derive a scalar ODE which is a necessary condition for a curve in SE(2) to be a relative geodesic, and we discuss some of the properties of the discrepancy. In the second part of the paper, we consider discrete curves, and by means of a variational principle, we derive a system of discrete equations for the relative geodesics. We finish with several examples.