fisheye

how to find the differences between an un-distorted fish eye image and normal image?

萝らか妹 提交于 2019-12-11 06:43:51
问题 I am trying to measure the amount of information lost in an image when the image is distorted and then undistorted. So, I am doing to the following process in Matlab (keeping the Field of View of the camera constant). Original image (Pinhole camera type) --> perform fish eye distortion (using the division model) --> un-distort the the distorted image (using inverse of division model) to get back the un-distorted image. After the above procedure is performed, I am trying to get the difference

fisheye camera calibration

久未见 提交于 2019-12-11 05:42:42
问题 I am working on Fisheye camera calibration, and I'm not getting the expected result and I don't know where I'm wrong. I'm new to this camera calibration. My Parameters from calibration Focal Length: fc = [ 410.7476 408.0925 ] Principal point: cc = [ 369.3690 299.0193 ] Skew: alpha_c = [ 0.8336 ] Fisheye Distortion: kc = [ -0.3726 0.0931 0.0107 0.0000 ] My code to undistort: fisheye::estimateNewCameraMatrixForUndistortRectify(intrinsic, distCoeffs, input.size(), Matx33d::eye(), newK, 1);

How to use opencv.omnidir module for dewarping fisheye images

空扰寡人 提交于 2019-12-11 02:48:11
问题 I am trying to use omnidirectional module for dewarping fisheye images in Python . I am trying to adapt this C++ tutorial in Python but running into issues. Here is my code: import numpy as np import cv2 import glob nx = 9 ny = 6 # termination criteria criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001) chessboard_model = np.zeros((1, nx*ny, 3), np.float32) chessboard_model[0, :, :2] = np.mgrid[0:nx, 0:ny].T.reshape(-1, 2) # prepare object points, like (0,0,0), (1,0,0),

OpenCV stitcher fails to stitch undistorted images

牧云@^-^@ 提交于 2019-12-11 00:33:41
问题 I am trying to stitch a panorama using mobile phone camera with an attachable 170 degree wide angle lens. The resulting photo is distorted (fisheye). I understand that to stitch these photos using Stitcher::stitch(InputArrayOfArrays images, OutputArray pano) they must be undistorted first. First, I did the undistort(InputArray src, OutputArray dst, InputArray cameraMatrix, InputArray distCoeffs, InputArray newCameraMatrix=noArray() ) and save the results to jpg files. Then, I read the jpg

d3.js fisheye distortion on map

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 13:05:28
I'm trying to distort a d3.geo.path() map with the fisheye.js plugin ( https://github.com/d3/d3-plugins/tree/master/fisheye ). To distort an object the plugin needs x & y attributes. In the d3.js wiki it says: A projection function takes a two-element array of numbers representing the coordinates of a location, [longitude, latitude], and returns a similar two-element array of numbers representing the projected pixel position [x, y]. For example, a rudimentary spherical Mercator projection: https://github.com/mbostock/d3/wiki/Geo-Paths So the distortion should be possible, I just can't wrap my

d3.js fisheye distortion on map

牧云@^-^@ 提交于 2019-12-08 05:59:23
问题 I'm trying to distort a d3.geo.path() map with the fisheye.js plugin (https://github.com/d3/d3-plugins/tree/master/fisheye). To distort an object the plugin needs x & y attributes. In the d3.js wiki it says: A projection function takes a two-element array of numbers representing the coordinates of a location, [longitude, latitude], and returns a similar two-element array of numbers representing the projected pixel position [x, y]. For example, a rudimentary spherical Mercator projection:

Fisheye distortion rectification with lookup table

感情迁移 提交于 2019-12-08 02:32:27
问题 I have a fisheye lens: I would like to undistort it. I apply the FOV model: rd = 1 / ω * arctan (2 * ru * tan(ω / 2)) //Equation 13 ru = tan(rd * ω) / 2 / tan(ω / 2) //Equation 14 as found in equations (13) and (14) of the INRIA paper "Straight lines have to be straight" https://hal.inria.fr/inria-00267247/document. The code implementation is the following: Point2f distortPoint(float w, float h, float cx, float cy, float omega, Point2f input) { //w = width of the image //h = height of the

Anyone know of a jQuery fisheye/dock navigation plugin that is able to have a fixed position?

最后都变了- 提交于 2019-12-04 09:51:23
I'm looking to put a horizontal fisheye/dock nav on my site, but I need it to be fixed positioning... all the ones I've found do not support fixed positioning. Here are links to some of the ones I've found: jQuery OS X Dock #1 - Doesn't support fixed positioning CSS Dock Menu - This is very similar to the one above... euDock 2.0 - Supports similar to fixed positioning (position:absolute with javascript to make sure it stays in the same place) but this doesn't work because it's way too jumpy when you scroll down (See what I mean by going to that link and scrolling)... real fixed position is

fisheye distortion

最后都变了- 提交于 2019-12-03 20:42:24
I've found the code below written in java that places a fisheye effect on a buffered image. Is it possible to use this code on a different image format eg jpeg or bitmap? I've tried replacing the bufferedImage with bitmap and instead of using set/getARGB i've replaced with bitmap's get/setPixel. i just get a black bitmap.... i know was a bit of a long-shot:). import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import com.jhlabs.image.InterpolateFilter; class Filters{ float xscale; float yscale; float xshift; float yshift; int [] s

FishEye Picture Effect (Barrel Distortion) Algorithm (with Java)?

a 夏天 提交于 2019-12-03 08:41:49
I'm looking for the algorithm (bitmap pixel manipulation) to simulate the fisheye lens (Barrel Distortion) from normal pictures. So far I've found implementation involving external libraries like OpenCV, OpenGL or jhlabs. Since I'm taking a class in Digital Image Processing and I'm making a course assessment project, I'm not sure whether using any external lib will earn me a good grade. So would anyone give me the reference to such algorithm? Ps. I'm asked to implement it in Java, but example from any language would do. mpenkov It's good that you've been able to find examples that do what you