Contour matching and evaluation criteria?

related: How to contour extraction by stroke?