Camera calibration (from the OpenCV sample code)