utility to check 2D convex contours for correlation