Mucking around trying to understand the process OpenCV uses to find a grid