How to undistort a fisheye image with self-defined intrinsic matrix and distortion value by OpenCV
I have an image with grayscale changing with cos(wx), and I simulate the fisheye effect on it using the following python code, where K and D are intrinsic matrix and distortion parameter respectively.