Mathematics behind distance estimation using camera The Next CEO of Stack OverflowSome approximations for $arccos(1/(1+x))$Where are the values of the sine function coming from?Obtaining a deeper understanding of lower level MathematicsWhy is $cos (90)=-0.4$ in WebGL?Sine & Cosine Word ProblemWeierstrass Trig Substitution ProofMaking a metric out of distance measureFigure out the component of a value in X and Y coordinates using trigonometry.Using trigonometry to calculate a players angle of movement according to mouse position in a gameThe angle $alpha$ is greater than $90$ and less than $360$ and $cos(alpha)=frac23$. Find the exact value of $tan(alpha)$.
How do I fit a non linear curve?
What happened in Rome, when the western empire "fell"?
Is it ever safe to open a suspicious HTML file (e.g. email attachment)?
Defamation due to breach of confidentiality
What was Carter Burke's job for "the company" in Aliens?
Does destroying a Lich's phylactery destroy the soul within it?
Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?
Help! I cannot understand this game’s notations!
Spaces in which all closed sets are regular closed
Is it ok to trim down a tube patch?
Is it OK to decorate a log book cover?
Lucky Feat: How can "more than one creature spend a luck point to influence the outcome of a roll"?
Is there a reasonable and studied concept of reduction between regular languages?
What does "shotgun unity" refer to here in this sentence?
A question about free fall, velocity, and the height of an object.
From jafe to El-Guest
Reshaping json / reparing json inside shell script (remove trailing comma)
Is dried pee considered dirt?
Traduction de « Life is a roller coaster »
My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?
Can I calculate next year's exemptions based on this year's refund/amount owed?
How to Implement Deterministic Encryption Safely in .NET
Reference request: Grassmannian and Plucker coordinates in type B, C, D
Audio Conversion With ADS1243
Mathematics behind distance estimation using camera
The Next CEO of Stack OverflowSome approximations for $arccos(1/(1+x))$Where are the values of the sine function coming from?Obtaining a deeper understanding of lower level MathematicsWhy is $cos (90)=-0.4$ in WebGL?Sine & Cosine Word ProblemWeierstrass Trig Substitution ProofMaking a metric out of distance measureFigure out the component of a value in X and Y coordinates using trigonometry.Using trigonometry to calculate a players angle of movement according to mouse position in a gameThe angle $alpha$ is greater than $90$ and less than $360$ and $cos(alpha)=frac23$. Find the exact value of $tan(alpha)$.
$begingroup$
Can some one explain the logic and calculations in deriving the distance/depth(z) value in the attached research paper. Kindly make your explanation elaborate for me to understand clearly as i was not good in mathematics from school days.
trigonometry
$endgroup$
migrated from mathematica.stackexchange.com Mar 26 at 1:18
This question came from our site for users of Wolfram Mathematica.
add a comment |
$begingroup$
Can some one explain the logic and calculations in deriving the distance/depth(z) value in the attached research paper. Kindly make your explanation elaborate for me to understand clearly as i was not good in mathematics from school days.
trigonometry
$endgroup$
migrated from mathematica.stackexchange.com Mar 26 at 1:18
This question came from our site for users of Wolfram Mathematica.
add a comment |
$begingroup$
Can some one explain the logic and calculations in deriving the distance/depth(z) value in the attached research paper. Kindly make your explanation elaborate for me to understand clearly as i was not good in mathematics from school days.
trigonometry
$endgroup$
Can some one explain the logic and calculations in deriving the distance/depth(z) value in the attached research paper. Kindly make your explanation elaborate for me to understand clearly as i was not good in mathematics from school days.
trigonometry
trigonometry
edited Mar 26 at 1:32
Ertxiem
59912
59912
asked Mar 26 at 0:33
Code_KidCode_Kid
33
33
migrated from mathematica.stackexchange.com Mar 26 at 1:18
This question came from our site for users of Wolfram Mathematica.
migrated from mathematica.stackexchange.com Mar 26 at 1:18
This question came from our site for users of Wolfram Mathematica.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Place your finger straight up, away from your face, directly in front of your nose. Close one eye. Open it. Close the other eye and open it. Your finger moved quite a bit. Now look at something a few meters away and try the same exercise. Not as much movement. This "movement" between one eye and the other (or one camera and another) is called disparity. By trigonometry (as in the figure you posted) disparity is inversely proportional to distance. Using the equations you posted, and drawing triangles, you can derive the relationship. If $x_L$ is the "position in a coordinate system of the left camera" and $x_R$ is the "position of a coordinate system of the right camera", then disparity $delta = x_L - x_R$. (Different authors use different conventions, sometimes this equation appears with a minus sign).
By similar triangles, we can write the equations for $x_L$ and $x_R$:
$displaystyle large fracx_Lf = fracX+fracb2Z, quad fracx_Rf = fracX-fracb2Z$
so that the disparity is:
$large delta = x_L -x_R = fracb fZ$.
Here, $b$ is the baseline distance between two pinhole cameras and $f$ is the shared focal length of each camera. We see that disparity is inversely proportional to $Z$, the vertical distance from the point we are observing, and the horizontal line through the origin, $O$.
$endgroup$
$begingroup$
Thanks a lot mjw. It really helped in understanding what disparity is. I would also like to understand the relationship between the triangles and the math calculations behind deriving the distance.
$endgroup$
– Code_Kid
Mar 26 at 1:55
$begingroup$
I've redrawn the figure so that I could write the equations "in my own words". Hope this is helpful and understandable.
$endgroup$
– mjw
Mar 28 at 2:31
$begingroup$
Notice that the disparity $delta$ is independent of $X$ and only depends on $Z$ (along with the constants $b$ and $f$).
$endgroup$
– mjw
Mar 28 at 2:35
$begingroup$
Thanks a lot mjw. I am can understand the calculations easily now.
$endgroup$
– Code_Kid
Mar 28 at 4:32
$begingroup$
@Code_Kid, You're welcome!
$endgroup$
– mjw
Mar 28 at 4:38
add a comment |
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3162572%2fmathematics-behind-distance-estimation-using-camera%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Place your finger straight up, away from your face, directly in front of your nose. Close one eye. Open it. Close the other eye and open it. Your finger moved quite a bit. Now look at something a few meters away and try the same exercise. Not as much movement. This "movement" between one eye and the other (or one camera and another) is called disparity. By trigonometry (as in the figure you posted) disparity is inversely proportional to distance. Using the equations you posted, and drawing triangles, you can derive the relationship. If $x_L$ is the "position in a coordinate system of the left camera" and $x_R$ is the "position of a coordinate system of the right camera", then disparity $delta = x_L - x_R$. (Different authors use different conventions, sometimes this equation appears with a minus sign).
By similar triangles, we can write the equations for $x_L$ and $x_R$:
$displaystyle large fracx_Lf = fracX+fracb2Z, quad fracx_Rf = fracX-fracb2Z$
so that the disparity is:
$large delta = x_L -x_R = fracb fZ$.
Here, $b$ is the baseline distance between two pinhole cameras and $f$ is the shared focal length of each camera. We see that disparity is inversely proportional to $Z$, the vertical distance from the point we are observing, and the horizontal line through the origin, $O$.
$endgroup$
$begingroup$
Thanks a lot mjw. It really helped in understanding what disparity is. I would also like to understand the relationship between the triangles and the math calculations behind deriving the distance.
$endgroup$
– Code_Kid
Mar 26 at 1:55
$begingroup$
I've redrawn the figure so that I could write the equations "in my own words". Hope this is helpful and understandable.
$endgroup$
– mjw
Mar 28 at 2:31
$begingroup$
Notice that the disparity $delta$ is independent of $X$ and only depends on $Z$ (along with the constants $b$ and $f$).
$endgroup$
– mjw
Mar 28 at 2:35
$begingroup$
Thanks a lot mjw. I am can understand the calculations easily now.
$endgroup$
– Code_Kid
Mar 28 at 4:32
$begingroup$
@Code_Kid, You're welcome!
$endgroup$
– mjw
Mar 28 at 4:38
add a comment |
$begingroup$
Place your finger straight up, away from your face, directly in front of your nose. Close one eye. Open it. Close the other eye and open it. Your finger moved quite a bit. Now look at something a few meters away and try the same exercise. Not as much movement. This "movement" between one eye and the other (or one camera and another) is called disparity. By trigonometry (as in the figure you posted) disparity is inversely proportional to distance. Using the equations you posted, and drawing triangles, you can derive the relationship. If $x_L$ is the "position in a coordinate system of the left camera" and $x_R$ is the "position of a coordinate system of the right camera", then disparity $delta = x_L - x_R$. (Different authors use different conventions, sometimes this equation appears with a minus sign).
By similar triangles, we can write the equations for $x_L$ and $x_R$:
$displaystyle large fracx_Lf = fracX+fracb2Z, quad fracx_Rf = fracX-fracb2Z$
so that the disparity is:
$large delta = x_L -x_R = fracb fZ$.
Here, $b$ is the baseline distance between two pinhole cameras and $f$ is the shared focal length of each camera. We see that disparity is inversely proportional to $Z$, the vertical distance from the point we are observing, and the horizontal line through the origin, $O$.
$endgroup$
$begingroup$
Thanks a lot mjw. It really helped in understanding what disparity is. I would also like to understand the relationship between the triangles and the math calculations behind deriving the distance.
$endgroup$
– Code_Kid
Mar 26 at 1:55
$begingroup$
I've redrawn the figure so that I could write the equations "in my own words". Hope this is helpful and understandable.
$endgroup$
– mjw
Mar 28 at 2:31
$begingroup$
Notice that the disparity $delta$ is independent of $X$ and only depends on $Z$ (along with the constants $b$ and $f$).
$endgroup$
– mjw
Mar 28 at 2:35
$begingroup$
Thanks a lot mjw. I am can understand the calculations easily now.
$endgroup$
– Code_Kid
Mar 28 at 4:32
$begingroup$
@Code_Kid, You're welcome!
$endgroup$
– mjw
Mar 28 at 4:38
add a comment |
$begingroup$
Place your finger straight up, away from your face, directly in front of your nose. Close one eye. Open it. Close the other eye and open it. Your finger moved quite a bit. Now look at something a few meters away and try the same exercise. Not as much movement. This "movement" between one eye and the other (or one camera and another) is called disparity. By trigonometry (as in the figure you posted) disparity is inversely proportional to distance. Using the equations you posted, and drawing triangles, you can derive the relationship. If $x_L$ is the "position in a coordinate system of the left camera" and $x_R$ is the "position of a coordinate system of the right camera", then disparity $delta = x_L - x_R$. (Different authors use different conventions, sometimes this equation appears with a minus sign).
By similar triangles, we can write the equations for $x_L$ and $x_R$:
$displaystyle large fracx_Lf = fracX+fracb2Z, quad fracx_Rf = fracX-fracb2Z$
so that the disparity is:
$large delta = x_L -x_R = fracb fZ$.
Here, $b$ is the baseline distance between two pinhole cameras and $f$ is the shared focal length of each camera. We see that disparity is inversely proportional to $Z$, the vertical distance from the point we are observing, and the horizontal line through the origin, $O$.
$endgroup$
Place your finger straight up, away from your face, directly in front of your nose. Close one eye. Open it. Close the other eye and open it. Your finger moved quite a bit. Now look at something a few meters away and try the same exercise. Not as much movement. This "movement" between one eye and the other (or one camera and another) is called disparity. By trigonometry (as in the figure you posted) disparity is inversely proportional to distance. Using the equations you posted, and drawing triangles, you can derive the relationship. If $x_L$ is the "position in a coordinate system of the left camera" and $x_R$ is the "position of a coordinate system of the right camera", then disparity $delta = x_L - x_R$. (Different authors use different conventions, sometimes this equation appears with a minus sign).
By similar triangles, we can write the equations for $x_L$ and $x_R$:
$displaystyle large fracx_Lf = fracX+fracb2Z, quad fracx_Rf = fracX-fracb2Z$
so that the disparity is:
$large delta = x_L -x_R = fracb fZ$.
Here, $b$ is the baseline distance between two pinhole cameras and $f$ is the shared focal length of each camera. We see that disparity is inversely proportional to $Z$, the vertical distance from the point we are observing, and the horizontal line through the origin, $O$.
edited Mar 28 at 3:04
answered Mar 26 at 1:01
mjwmjw
2005
2005
$begingroup$
Thanks a lot mjw. It really helped in understanding what disparity is. I would also like to understand the relationship between the triangles and the math calculations behind deriving the distance.
$endgroup$
– Code_Kid
Mar 26 at 1:55
$begingroup$
I've redrawn the figure so that I could write the equations "in my own words". Hope this is helpful and understandable.
$endgroup$
– mjw
Mar 28 at 2:31
$begingroup$
Notice that the disparity $delta$ is independent of $X$ and only depends on $Z$ (along with the constants $b$ and $f$).
$endgroup$
– mjw
Mar 28 at 2:35
$begingroup$
Thanks a lot mjw. I am can understand the calculations easily now.
$endgroup$
– Code_Kid
Mar 28 at 4:32
$begingroup$
@Code_Kid, You're welcome!
$endgroup$
– mjw
Mar 28 at 4:38
add a comment |
$begingroup$
Thanks a lot mjw. It really helped in understanding what disparity is. I would also like to understand the relationship between the triangles and the math calculations behind deriving the distance.
$endgroup$
– Code_Kid
Mar 26 at 1:55
$begingroup$
I've redrawn the figure so that I could write the equations "in my own words". Hope this is helpful and understandable.
$endgroup$
– mjw
Mar 28 at 2:31
$begingroup$
Notice that the disparity $delta$ is independent of $X$ and only depends on $Z$ (along with the constants $b$ and $f$).
$endgroup$
– mjw
Mar 28 at 2:35
$begingroup$
Thanks a lot mjw. I am can understand the calculations easily now.
$endgroup$
– Code_Kid
Mar 28 at 4:32
$begingroup$
@Code_Kid, You're welcome!
$endgroup$
– mjw
Mar 28 at 4:38
$begingroup$
Thanks a lot mjw. It really helped in understanding what disparity is. I would also like to understand the relationship between the triangles and the math calculations behind deriving the distance.
$endgroup$
– Code_Kid
Mar 26 at 1:55
$begingroup$
Thanks a lot mjw. It really helped in understanding what disparity is. I would also like to understand the relationship between the triangles and the math calculations behind deriving the distance.
$endgroup$
– Code_Kid
Mar 26 at 1:55
$begingroup$
I've redrawn the figure so that I could write the equations "in my own words". Hope this is helpful and understandable.
$endgroup$
– mjw
Mar 28 at 2:31
$begingroup$
I've redrawn the figure so that I could write the equations "in my own words". Hope this is helpful and understandable.
$endgroup$
– mjw
Mar 28 at 2:31
$begingroup$
Notice that the disparity $delta$ is independent of $X$ and only depends on $Z$ (along with the constants $b$ and $f$).
$endgroup$
– mjw
Mar 28 at 2:35
$begingroup$
Notice that the disparity $delta$ is independent of $X$ and only depends on $Z$ (along with the constants $b$ and $f$).
$endgroup$
– mjw
Mar 28 at 2:35
$begingroup$
Thanks a lot mjw. I am can understand the calculations easily now.
$endgroup$
– Code_Kid
Mar 28 at 4:32
$begingroup$
Thanks a lot mjw. I am can understand the calculations easily now.
$endgroup$
– Code_Kid
Mar 28 at 4:32
$begingroup$
@Code_Kid, You're welcome!
$endgroup$
– mjw
Mar 28 at 4:38
$begingroup$
@Code_Kid, You're welcome!
$endgroup$
– mjw
Mar 28 at 4:38
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3162572%2fmathematics-behind-distance-estimation-using-camera%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown