I see the chamfer matching example and chamfer class (in samples/cpp/chamfer.cpp) seems to have been removed in opencv 3.0. A quick search shows no modification to chamfer.cpp since June 2011.
Previous versions of this sample had a double-free of memory.
Is there a modern, recommended chamfer matching example, or do I just have to roll my own out of the distance transform (which is not difficult)