Matching of planar curves using the Euclidean group