calibration

cvUndistort2 () and cvRemap () crash

亡梦爱人 提交于 2019-12-01 11:38:40
问题 I was doing example 11-1 of "Learning OpenCV" by Bradski. Unfortunately the given example doesn't work on my computer. The program is supposed to calibrate camera using chessboard and then output undistorted video output from the camera. The calibration part works fine, the problem arises when the program tries to undistort the image. I tried both cvUndistort2() and cvRemap(), in both cases the output windows freeze and the the program crashes, so that I have to force close it. Here is the

Software to Tune/Calibrate Properties for Heuristic Algorithms

那年仲夏 提交于 2019-12-01 07:31:12
Today I read that there is a software called WinCalibra (scroll a bit down) which can take a text file with properties as input. This program can then optimize the input properties based on the output values of your algorithm. See this paper or the user documentation for more information (see link above; sadly doc is a zipped exe). Do you know other software which can do the same which runs under Linux? (preferable Open Source) EDIT : Since I need this for a java application: should I invest my research in java libraries like gaul or watchmaker ? The problem is that I don't want to roll out my

Software to Tune/Calibrate Properties for Heuristic Algorithms

橙三吉。 提交于 2019-12-01 04:19:08
问题 Today I read that there is a software called WinCalibra (scroll a bit down) which can take a text file with properties as input. This program can then optimize the input properties based on the output values of your algorithm. See this paper or the user documentation for more information (see link above; sadly doc is a zipped exe). Do you know other software which can do the same which runs under Linux? (preferable Open Source) EDIT : Since I need this for a java application: should I invest

OPENCV: Calibratecamera 2 reprojection error and custom computed one not agree

◇◆丶佛笑我妖孽 提交于 2019-11-30 10:06:17
I have a python script that uses the calibratecamera2 method to calibrate a camera from a few views of a checker board. After a successful calibration I go after all original points and do some plots and compute again the re-projection error. My surprise is that the reprojection error computed by opencv and mine are a bit different. I found it strange. Am I computing it in a wrong way? obj_points = []# 3d point in real world space. List of arrays img_points = []# 2d points in image plane. List of arrays ... ret, camera_matrix, dist_coeffs, rvecs, tvecs = cv2.calibrateCamera(obj_points, img

To calculate world coordinates from screen coordinates with OpenCV

為{幸葍}努か 提交于 2019-11-29 21:08:41
I have calculated the intrinsic and extrinsic parameters of the camera with OpenCV. Now, I want to calculate world coordinates (x,y,z) from screen coordinates (u,v). How I do this? N.B. as I use the kinect, I already know the z coordinate. Any help is much appreciated. Thanks! First to understand how you calculate it, it would help you if you read some things about the pinhole camera model and simple perspective projection. For a quick glimpse, check this . I'll try to update with more. So, let's start by the opposite which describes how a camera works: project a 3d point in the world

How to Have Non-Zero Symbol for Incomplete Labels of XTicks in Matlab?

别来无恙 提交于 2019-11-29 17:01:26
I run into the problem where Matlab 2015b expands the labels of new Xticks when the x-axis gets bigger by using incomplete label, zeros, in the thread No Gap Next to Axis Label in Matlab? The dynamic expansion of incomplete labels of xticks is not possible because there is always cases of insufficient space but only one symbol is needed to mark half between two values. The situation is problematic with zeros because I have several calibration points and several systems where the extra zeros are errorprone. I would like to have there another symbol. Example code how to create those incomplete

How to calculate extrinsic parameters of one camera relative to the second camera?

痴心易碎 提交于 2019-11-29 10:14:24
I have calibrated 2 cameras with respect to some world coordinate system. I know rotation matrix and translation vector for each of them relative to the world frame. From these matrices how to calculate rotation matrix and translation vector of one camera with respect to the other?? Any help or suggestion please. Thanks! First convert your rotation matrix into a rotation vector. Now you have 2 3d vectors for each camera, call them A1,A2,B1,B2. You have all 4 of them with respect to some origin O. The rule you need is A relative to B = (A relative to O)- (B relative to O) Apply that rule to

To calculate world coordinates from screen coordinates with OpenCV

无人久伴 提交于 2019-11-28 17:15:22
问题 I have calculated the intrinsic and extrinsic parameters of the camera with OpenCV. Now, I want to calculate world coordinates (x,y,z) from screen coordinates (u,v). How I do this? N.B. as I use the kinect, I already know the z coordinate. Any help is much appreciated. Thanks! 回答1: First to understand how you calculate it, it would help you if you read some things about the pinhole camera model and simple perspective projection. For a quick glimpse, check this. I'll try to update with more.

How to Have Non-Zero Symbol for Incomplete Labels of XTicks in Matlab?

99封情书 提交于 2019-11-28 10:21:12
问题 I run into the problem where Matlab 2015b expands the labels of new Xticks when the x-axis gets bigger by using incomplete label, zeros, in the thread No Gap Next to Axis Label in Matlab? The dynamic expansion of incomplete labels of xticks is not possible because there is always cases of insufficient space but only one symbol is needed to mark half between two values. The situation is problematic with zeros because I have several calibration points and several systems where the extra zeros

How to calculate extrinsic parameters of one camera relative to the second camera?

社会主义新天地 提交于 2019-11-28 03:44:05
问题 I have calibrated 2 cameras with respect to some world coordinate system. I know rotation matrix and translation vector for each of them relative to the world frame. From these matrices how to calculate rotation matrix and translation vector of one camera with respect to the other?? Any help or suggestion please. Thanks! 回答1: First convert your rotation matrix into a rotation vector. Now you have 2 3d vectors for each camera, call them A1,A2,B1,B2. You have all 4 of them with respect to some