Image cognition using contour curvature statistics