<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.stereopi.com/app.php/feed/topic/1037" />

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2020-11-03T06:09:01+00:00</updated>

	<author><name><![CDATA[StereoPi Forum]]></name></author>
	<id>https://forum.stereopi.com/app.php/feed/topic/1037</id>

		<entry>
		<author><name><![CDATA[latif]]></name></author>
		<updated>2020-11-03T06:09:01+00:00</updated>

		<published>2020-11-03T06:09:01+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2352#p2352</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2352#p2352"/>
		<title type="html"><![CDATA[Re: 3D world coordinates from stereo calibration]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2352#p2352"><![CDATA[
Sure Realizator.. please take your time.  I am eagerly waiting for your response.<br><br>Thanking you in anticipation!<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=610">latif</a> — Tue Nov 03, 2020 6:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-11-02T12:02:32+00:00</updated>

		<published>2020-11-02T12:02:32+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2350#p2350</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2350#p2350"/>
		<title type="html"><![CDATA[Re: 3D world coordinates from stereo calibration]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2350#p2350"><![CDATA[
Hi Latif,<br>I got your files. Please give me some time to review and your data. I'll be back with my answer soon!<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Mon Nov 02, 2020 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[latif]]></name></author>
		<updated>2020-10-30T06:53:04+00:00</updated>

		<published>2020-10-30T06:53:04+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2348#p2348</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2348#p2348"/>
		<title type="html"><![CDATA[Re: 3D world coordinates from stereo calibration]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2348#p2348"><![CDATA[
Thank You for your response Stereomaton and realizator<br>Realizator, here is the google drive link my folder. it contains everything that I have tried. and please read the ( PLEASE READ THIS FILE.txt). I have mentioned everything in detail here. <br><br><a href="https://drive.google.com/file/d/1foS7qxXOFXqT84FPyI2wwqUVVgawWa9V/view?usp=sharing" class="postlink">https://drive.google.com/file/d/1foS7qx ... sp=sharing</a><br> <br>Thanks<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=610">latif</a> — Fri Oct 30, 2020 6:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-10-29T11:26:44+00:00</updated>

		<published>2020-10-29T11:26:44+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2344#p2344</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2344#p2344"/>
		<title type="html"><![CDATA[Re: 3D world coordinates from stereo calibration]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2344#p2344"><![CDATA[
Hi Latif and Stereomaton,<br>Stereomaton, thank you for your reply!<br>Latif, it will be easier for me to use the same data you are using, to compare our results step-by-step.<br>Can you please share your set of calibration images? I will try to follow all your steps from the very beginning.<br>You can share a link to your files here, or send it to me in a direct message (email to my nickname @ gmail.com).<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Oct 29, 2020 11:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stereomaton]]></name></author>
		<updated>2020-10-29T09:16:46+00:00</updated>

		<published>2020-10-29T09:16:46+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2343#p2343</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2343#p2343"/>
		<title type="html"><![CDATA[Re: 3D world coordinates from stereo calibration]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2343#p2343"><![CDATA[
I have no experience in the domain, but I see that the only input of the function are your calibration matrices and the coordinates of your homologous points.<br>Thus, I would suspect that the calibration is not good enough.<br><br>I suppose that the RMS value you talk about is computed as reprojection error of the calibration points, which denotes that the computed matrices correspond to those points, but were those sufficiently significant? Did you checked the rectified images?<br>I suppose that you use the coordinates in the rectified images, do you also use the matrices corrected for the new projection?<br>With a rough calculus, using a 1171px focal, your points seem too far apart for the 14cm/3m pair you gave, or the base is bigger or the object is closer. Also, the "center" terms of the matrices look a bit suspect to me, but not sure.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=101">stereomaton</a> — Thu Oct 29, 2020 9:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[latif]]></name></author>
		<updated>2020-10-28T19:23:29+00:00</updated>

		<published>2020-10-28T16:28:28+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2340#p2340</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2340#p2340"/>
		<title type="html"><![CDATA[3D world coordinates from stereo calibration]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2340#p2340"><![CDATA[
I want to get a 3D world coordinate of a point in an image from its pixel coordinate. For this, I have studied that we need extrinsic and intrinsic parameters of a stereo setup.<br>Now, I have successfully done the stereo calibration. I have set two same cameras 14 cm apart and prepare a stereo setup. I have followed the code provided on your forum up to 4_fisheye_calibration.py. I have calibrated stereo camera setup and obtain RMS error of 0.45. and I have saved the projection matrices for both left and right camera. my projection matrix look like<br>leftProjection matrix<br>[[1.17125554e+03 0.00000000e+00 4.23688858e+02 0.00000000e+00]<br> [0.00000000e+00 1.17125554e+03 9.46732804e+01 0.00000000e+00]<br> [0.00000000e+00 0.00000000e+00 1.00000000e+00 0.00000000e+00]]<br>rightProjection matrix<br>[[ 1.17125554e+03  0.00000000e+00  5.48487792e+02 -9.48032081e+03]<br> [ 0.00000000e+00  1.17125554e+03  9.46732804e+01  0.00000000e+00]<br> [ 0.00000000e+00  0.00000000e+00  1.00000000e+00  0.00000000e+00]]<br><br>Now I just want to find the 3D world coordinates of any point in the image with known coordinates. I am using these projection matrices and use them in the cv2.triangulatepoints() function. It gives me a 4x1 matrix. This function gives answers in homogenous coordinate. So I convert this in 3D coordinates by dividing the 4th value in this matrix with the first three values of the matrix. and this will give me world coordinates of the specific points according to my knowledge as far as I have gone through this cv2.triangulatepoints() function.<br><br>I am getting a difference of almost half value for X, Y and Z coordinates.i.e for the original distance of 3 meters it is only showing 1.5 meters in the result.<br>I am following his approach (<a href="https://stackoverflow.com/questions/46163831/output-3d-points-change-everytime-in-triangulatepoints-using-in-python-2-7-with" class="postlink">https://stackoverflow.com/questions/461 ... n-2-7-with</a>)<br><br>I have attached the picture from my code for the cv2.triangulatepoints() function.<br><br>P.S: The problem is the wrong coordinates that I am getting by this approach. Also, I am not sure if I am using the correct method or not to find the 3D world coordinates. I am stuck at this point. I have no idea what to do next<br><br>Kindly guide me if I am following the wrong approach<dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=163" class="postimage" alt="COORDINATES.PNG" onclick="viewableArea(this);" /></dt></dl><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=610">latif</a> — Wed Oct 28, 2020 4:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
