fisheye

Getting Zend_Navigation menu to work with jQuery's Fisheye

不羁的心 提交于 2019-12-28 03:32:15
问题 I'm using Zend_Navigation (sweet addition to the framework, btw) to build my menu, after which it should be rendered in the page (self-evidently). I first set the container somewhere in the controller: // $pages is the array containing all page information $nav = new Zend_Navigation($pages); $this->view->navigation($nav); Then, in the layout, it is rendered like this: echo $this->navigation()->menu(); which works perfectly. Now: I want the menu to be rendered a little differently. The page I

RaspiCam fisheye calibration with OpenCV

家住魔仙堡 提交于 2019-12-21 06:46:25
问题 I am trying to calibrate RaspiCam Fisheye lens camera with OpenCV. I am using Python example code and the cheesboard row and column numbers are also correct but somehow I can not get a successful result. I have tested with a lso much of photos below you can see them. My source code: https://github.com/jagracar/OpenCV-python-tests/blob/master/OpenCV-tutorials/cameraCalibration/cameraCalibration.py my chess board rows and columns: rows = 9, cols = 6 but does not get a successful result Edit: my

fisheye distortion

徘徊边缘 提交于 2019-12-21 06:18:27
问题 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

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

放肆的年华 提交于 2019-12-21 02:56:56
问题 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

transformation issues when implementing fisheye distortion in a radial tree

不打扰是莪最后的温柔 提交于 2019-12-19 09:05:14
问题 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

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

我的梦境 提交于 2019-12-18 05:59:27
问题 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

Error in removing the fisheye lens distortion of an image in Matlab [duplicate]

流过昼夜 提交于 2019-12-12 02:39:49
问题 This question already has answers here : correcting fisheye distortion programmatically (6 answers) Closed 4 years ago . I have the following image: I want to remove the fisheye lens distortion from this image, so I used the following code: [X,map] = imread('Foam_Image.jpg'); % Read the indexed image options = [size(X,1) size(X,2) 1]; % An array containing the columns, rows and exponent tf = maketform('custom',2,2,[],... % Make the transformation structure @fisheye_inverse,options); newImage

D3 Fisheye Distortion on simple Scatter plot

三世轮回 提交于 2019-12-12 01:36:01
问题 I'm trying to implement the d3 fisheye distortion (http://bost.ocks.org/mike/fisheye/) on a simple scatter plot. Here the code that I have so far: http://plnkr.co/edit/yDWld6?p=preview I am very unsure how I should call the circles for the distortion. At the moment it looks like this but nothing happens on "mousemove" so far. svg.on("mousemove", function() { fisheye.center(d3.mouse(this)); circles .selectAll("circle") .each(function (d) { d.fisheye = fisheye(d); }) .attr("cx", function (d) {

D3 fisheye on a force graph with markers

ⅰ亾dé卋堺 提交于 2019-12-11 14:36:14
问题 I love the new fisheye plug in (http://bost.ocks.org/mike/fisheye/) but want to get it working on a force graph that uses paths and markers rather than lines. I am new to D3 and so far combining the markers demo, with the fisheye demo has defeated me, I wondered if anyone had been successful and could point me in the right direction. Cheers Ben 回答1: vis.on("mousemove", function() { if (rmbMenuHidden) { fisheye.center(d3.mouse(this)); node .each(function(d) { d.display = fisheye(d); }) .attr(

Virtual PTZ camera via physical fisheye camera and Open CV

孤街醉人 提交于 2019-12-11 09:09:41
问题 I'm trying to realize a virtual Pan-Tilt-Zoom (PTZ) camera, based on data from physical fisheye camera (180 degrees FOV). In my opinion I have to realize the next sequence. Get the coordinates of center of fisheye circle in coordinates of fisheye sensor matrix. Get radius of fisheye circle in the same coordinate system. Generate a sphere equation, which has the same center and radius as flat fisheye image on flat camera sensor. Project all colored points from flat image to upper hemisphere.