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)$.










0












$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.enter image description here










share|cite|improve this question











$endgroup$



migrated from mathematica.stackexchange.com Mar 26 at 1:18


This question came from our site for users of Wolfram Mathematica.






















    0












    $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.enter image description here










    share|cite|improve this question











    $endgroup$



    migrated from mathematica.stackexchange.com Mar 26 at 1:18


    This question came from our site for users of Wolfram Mathematica.




















      0












      0








      0





      $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.enter image description here










      share|cite|improve this question











      $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.enter image description here







      trigonometry






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      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.






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $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).



          enter image description here



          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$.






          share|cite|improve this answer











          $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











          Your Answer





          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
          );



          );













          draft saved

          draft discarded


















          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









          1












          $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).



          enter image description here



          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$.






          share|cite|improve this answer











          $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















          1












          $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).



          enter image description here



          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$.






          share|cite|improve this answer











          $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













          1












          1








          1





          $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).



          enter image description here



          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$.






          share|cite|improve this answer











          $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).



          enter image description here



          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$.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          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
















          • $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

















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

          Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

          Հադիս Բովանդակություն Անվանում և նշանակություն | Դասակարգում | Աղբյուրներ | Նավարկման ցանկ