Is there Opencv C api for fisheye correction? [closed]
I need to correct the fisheye lens distortion in the image. Is there any C api in OpenCV for fisheye correction?
I have used the following functions for the correction. But its not working.
At first getting the mapx and mapy: void cvInitUndistortRectifyMap(const CvMat* camera_matrix, const CvMat* dist_coeffs, const CvMat* R, const CvMat* new_camera_matrix, CvArr* mapx, CvArr* mapy)
Then remapping it using mapx and mapy: void cvRemap(const CvArr* src, CvArr* dst, const CvArr* mapx, const CvArr* mapy, int flags=CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS, CvScalar fillval=cvScalarAll(0) )