Calibrate a camera with opencv(based on example in opencv documents)