Ask Your Question
0

Is there Opencv C api for fisheye correction? [closed]

asked 2019-06-10 07:47:27 -0600

Vijeet gravatar image

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) )

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by berak
close date 2019-06-10 08:25:05.004516

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-06-10 08:24:26 -0600

berak gravatar image

no, there isn't.

but you shouldn't use opencv's deprecated c-api anyway.

here are docs for opencv's fisheye calibration, using the c++ api

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-06-10 07:47:27 -0600

Seen: 311 times

Last updated: Jun 10 '19