fisheye

What are the main references to the fish-eye camera model in OpenCV3.0.0dev?

谁都会走 提交于 2019-12-03 04:24:46
问题 I am wrestling with the Fish-Eye Camera Model used in OpenCV 3.0.0.dev . I have read the documentation in this link several times, especially the "Detailed Description" part and formulas modeling fish-eye distortion. By now I have two concerns: Based on the projection models listed here and their conceptual explanations in " Accuracy of Fish-Eye Lens Model " By Hughes, I can't figure out which projection model has been used in the OpenCV implementation. Since the description is so concise, I

What are the main references to the fish-eye camera model in OpenCV3.0.0dev?

。_饼干妹妹 提交于 2019-12-02 17:39:38
I am wrestling with the Fish-Eye Camera Model used in OpenCV 3.0.0.dev . I have read the documentation in this link several times, especially the "Detailed Description" part and formulas modeling fish-eye distortion. By now I have two concerns: Based on the projection models listed here and their conceptual explanations in " Accuracy of Fish-Eye Lens Model " By Hughes, I can't figure out which projection model has been used in the OpenCV implementation. Since the description is so concise, I need to know the main reference papers used by OpenCV developers for implementing fish-eye namespace,

OpenCV fisheye undistort issues

吃可爱长大的小学妹 提交于 2019-12-01 10:43:22
EDIT: I found the cause of the problem, the fisheye::undistortImage() function was not working correctly, I replaced it with estimateNewCameraMatrixForUndistortRectify() , initUndistortRectifyMap() , and remap() as in the original calibrate camera example. Not perfect yet but going in the right direction. Output image: http://imgur.com/a/Xm5vq Mat output; Mat newK; Mat view, map1, map2; Size newSize(1200, 1200); Mat rview(newSize, frame.type()); //resize(rview, rview, newSize); fisheye::estimateNewCameraMatrixForUndistortRectify(K, D, frame.size(), Matx33d::eye(), newK, 1); fisheye:

transformation issues when implementing fisheye distortion in a radial tree

人走茶凉 提交于 2019-12-01 06:44:05
Basically, I am attempting to apply the d3 fisheye distortion algorithm to a radial tree. I believe the issues I am encountering revolve around the fact that the coords being fed to the fisheye distortion are the coords computed by the d3.layout.tree. But the actual coords have been adjusted by the g transform. So, the coords resulting from the fisheye distortion need to be adjusted back to the g transform. For example: // re-setting the projection according to fisheye coords diagonal.projection(function(d) { d.fisheye = fisheye(d); return [d.fisheye.y, d.fisheye.x / 180 * Math.PI]; }) I have

Undistorting/rectify images with OpenCV

廉价感情. 提交于 2019-11-30 16:08:41
I took the example of code for calibrating a camera and undistorting images from this book: shop.oreilly.com/product/9780596516130.do As far as I understood the usual camera calibration methods of OpenCV work perfectly for "normal" cameras. When it comes to Fisheye-Lenses though we have to use a vector of 8 calibration parameters instead of 5 and also the flag CV_CALIB_RATIONAL_MODEL in the method cvCalibrateCamera2 . At least, that's what it says in the OpenCV documentary So, when I use this on an array of images like this ( Sample images from OCamCalib ) I get the following results using

How to create fisheye lens effect by openGL?

时光总嘲笑我的痴心妄想 提交于 2019-11-30 07:38:01
问题 I am trying to create lomo fisheye effect on an image using openGL. I am new to openGL, should I use cube mapping and fisheye projection? Is there any open source that I can refer to? Thanks. 回答1: You can draw a single quad with the image textured onto it, and use a fragment shader to warp the texture coordinate per-pixel as you desire. You'll have to do all the math yourself, but it looks like the previous post here might be a good starting point. 来源: https://stackoverflow.com/questions

Undistorting/rectify images with OpenCV

不羁岁月 提交于 2019-11-30 00:08:56
问题 I took the example of code for calibrating a camera and undistorting images from this book: shop.oreilly.com/product/9780596516130.do As far as I understood the usual camera calibration methods of OpenCV work perfectly for "normal" cameras. When it comes to Fisheye-Lenses though we have to use a vector of 8 calibration parameters instead of 5 and also the flag CV_CALIB_RATIONAL_MODEL in the method cvCalibrateCamera2 . At least, that's what it says in the OpenCV documentary So, when I use this

Barrel distortion correction algorithm to correct FishEye lens - failing to implement with Java

三世轮回 提交于 2019-11-29 10:54:59
I have a large bulk of photographs taken with a fisheye lens. As I want to do some image-processing (e.g. edge detection) on the photos I want to remove the barrel distortion which effects my results heavily. After some research and lots of read articles I found this page : They describe an algorithm (and some formulas) to solve this problem. M = a *rcorr^3 + b * rcorr^2 + c * rcorr + d rsrc = (a * rcorr^3 + b * rcorr^2 + c * rcorr + d) * rcorr rsrc = distance of a pixel from the center of the source image rcorr = distance of a pixel from the center in the corrected image a,b,c = distortion of

OpenCV fisheye calibration cuts too much of the resulting image

为君一笑 提交于 2019-11-29 06:26:48
I am using OpenCV to calibrate images taken using cameras with fish-eye lenses. The functions I am using are: findChessboardCorners(...); to find the corners of the calibration pattern. cornerSubPix(...); to refine the found corners. fisheye::calibrate(...); to calibrate the camera matrix and the distortion coefficients. fisheye::undistortImage(...); to undistort the images using the camera info obtained from calibration. While the resulting image does appear to look good (straight lines and so on), my issue is that the function cut away too much of the image. This is a real problem, as I am

How to create fisheye lens effect by openGL?

做~自己de王妃 提交于 2019-11-29 04:53:25
I am trying to create lomo fisheye effect on an image using openGL. I am new to openGL, should I use cube mapping and fisheye projection? Is there any open source that I can refer to? Thanks. You can draw a single quad with the image textured onto it, and use a fragment shader to warp the texture coordinate per-pixel as you desire. You'll have to do all the math yourself, but it looks like the previous post here might be a good starting point. 来源: https://stackoverflow.com/questions/1919917/how-to-create-fisheye-lens-effect-by-opengl