I have successfully calibrated and undistorted the image, which is distorted by a fisheye lense. For the measurement of the undistortion i want calculate the error of the distortion. For this measurement i need to calculate the calibration pattern points in the image coordinate space (pefect points) and the undistorted points done by the undistortImage() method. I have already calculated the "perfect points" and i wanted to calculate the undistorted points using the formula in (http://docs.opencv.org/master/db/d58/group__calib3d__fisheye.html#gsc.tab=0). But i didn't get the result I've expected. The problem is the transformation from the camera to the image coordinate system. u=fx(x′+αy′)+cx v=fy *y *y+cy. Has anybody an idea where my I make a mistake?