distortion

Fisheye/Wide-Angle lens Calibration in OpenCV

蹲街弑〆低调 提交于 2019-12-03 03:27:30
I know the default OpenCV Calibration systems model a Pinhole camera, but I'm working with a system using extremely wide FOV lens (187-degrees). If there any existing way to do this in OpenCV, or to work with just wide lenses? Or will I have to rewrite all the calibration/undistort for my system? Seems there's no good OpenCV way to do this. I wound up using OCamLib to do the actual calibration, then writing my own "undistortPoints" function (using Scaramuzza's algorithms) to undistort 2D image points into 3D unit vectors (rather than 2D points). Unfortunately, this also breaks lots of other

How to implement Drag Distortion Image filter in android?

六月ゝ 毕业季﹏ 提交于 2019-12-03 01:41:28
I am working on custom image filter project. And I came across one challenging task, in which I am supposed to apply distorted filters as can be seen in Funny face effect app . I want to develop first 3 filters as available in Funny Face Effects. So to implement such an effect I started using GPUImageView GPUImage and in this, it is using seekbar to distort image from the centre. I have achieved Bulge distortion from this. But is there any way I can implement drag filter, where I can distort my image by drag gesture? We tried to search for any other third party classes other then GPUImage. But

Re-distort points with camera intrinsics/extrinsics

情到浓时终转凉″ 提交于 2019-12-02 23:53:16
Given a set of 2D points, how can I apply the opposite of undistortPoints ? I have the camera intrinsics and distCoeffs and would like to (for example) create a square, and distort it as if the camera had viewed it through the lens. I have found a 'distort' patch here : http://code.opencv.org/issues/1387 but it would seem this is only good for images, I want to work on sparse points. morotspaj This question is rather old but since I ended up here from a google search without seeing a neat answer I decided to answer it anyway. There is a function called projectPoints that does exactly this. The

Improve cvFindChessboardCorners

时光怂恿深爱的人放手 提交于 2019-12-02 14:46:25
问题 Unfortunately, I was not able to find any solution to my question. What I'm trying to do is to improve the results using the OpenCV-method cvFindChessboardCorners in order to be able to achieve a better camera calibration, because I think that this is the reason why I get poor results undistorting/rectifying images like in my question before (Question: Undistorting/rectify images with OpenCV). So, what I want to know is, how I can improve the algorithm in order to be able to detect the

Improve cvFindChessboardCorners

廉价感情. 提交于 2019-12-02 07:46:55
Unfortunately, I was not able to find any solution to my question. What I'm trying to do is to improve the results using the OpenCV-method cvFindChessboardCorners in order to be able to achieve a better camera calibration, because I think that this is the reason why I get poor results undistorting/rectifying images like in my question before ( Question: Undistorting/rectify images with OpenCV ). So, what I want to know is, how I can improve the algorithm in order to be able to detect the chessboard corners in all images of this link: http://abload.de/img/cvfindchessboardcorneoxs73.jpg

Skew or Distort Image object in Java

岁酱吖の 提交于 2019-12-02 02:06:41
Is it possible to skew or distort an Image object in Java? I 'pull' one side of an image out, making it seem closer to me. (LIke 3D). Any suggestions? Paul Sasik Yes. Lots of ways but I would start with the Advanced Imaging API . It provides a ton of advanced imaging functionality. But just to do the type of transform that you're talking about you might just need an Affine Transform . Sample results here for the previous link. You can also do this with JavaFX. The following example uses PerspectiveTransform and a bit of rotation on the BufferedImage . It turns this image into this import

Skew or Distort Image object in Java

你离开我真会死。 提交于 2019-12-02 01:45:35
问题 Is it possible to skew or distort an Image object in Java? I 'pull' one side of an image out, making it seem closer to me. (LIke 3D). Any suggestions? 回答1: Yes. Lots of ways but I would start with the Advanced Imaging API. It provides a ton of advanced imaging functionality. But just to do the type of transform that you're talking about you might just need an Affine Transform. Sample results here for the previous link. 回答2: You can also do this with JavaFX. The following example uses

Correcting barrel lens distortion in an x,y series in R

对着背影说爱祢 提交于 2019-12-01 12:48:08
Edit: Ideally, I would like to use an identical algorithm to ImageMagick's -distort function, but implemented in R so as to transform raw x,y coordinates, rather than images. Using ImageMagick would also allow me to gain a visual proof of the effectiveness of the undistortion. The question I have an x,y series, produced from analysis of a video by a tracking software. The original images in the video have some barrel lens distortion that I would like to correct in order to improve the accuracy of the tracking coordinates. I can perform what looks like a suitable correction using the distort

Correcting barrel lens distortion in an x,y series in R

给你一囗甜甜゛ 提交于 2019-12-01 12:39:25
问题 Edit: Ideally, I would like to use an identical algorithm to ImageMagick's -distort function, but implemented in R so as to transform raw x,y coordinates, rather than images. Using ImageMagick would also allow me to gain a visual proof of the effectiveness of the undistortion. The question I have an x,y series, produced from analysis of a video by a tracking software. The original images in the video have some barrel lens distortion that I would like to correct in order to improve the

Android Camera2 API preview sometimes distorted

眉间皱痕 提交于 2019-12-01 12:13:44
I am building a custom camera with the Camera2 API. So far the camera works very well except for the preview which is distorted sometimes. Let's say I open the camera 7 times in a row. All of the attempts are succesful and the 8th time the camera preview is distorted. It looks like it uses the width as the height and vice versa. I have based my code on the Google sample implementation of the camera2 which can be found here . the interesting thing is that even the Google sample implementation has this distorted preview sometimes. I have tried to modify the AutoFitTextureView but nothing was