Plotting Binocular Disparity in Mathematica - Solve for f & d

In summary, the conversation discusses calculating binocular disparity for two points and provides a formula for it. The assignment is to plot the disparity using specific values for the variables a, D, and e. The speaker also shares a function and the resulting plot.
  • #1
SoggyBottoms
59
0
I calculated a binocular disparity [itex]\delta[/itex] of two points, see also this topic, and got the following formula:

[itex]\delta = Arctan(\frac{f}{D + d}) - Arctan(\frac{e}{D}) - Arctan(\frac{a - e}{D}) + Arctan(\frac{a - f}{D + d})[/itex]

The assignment now says: Choose a = 6.5 cm, D = 40 cm and e = 3.25 cm. Plot the disparity for [itex]f \in [e - 10, e + 10][/itex] (cm) and [itex]d \in [-20, 20][/itex] (cm).

Does anyone know how I could make such a plot?
 
Physics news on Phys.org
  • #2
That's just a function of 2 variables ok, Note I do not use user-defined variable names that begin with capital letters as this may conflict with built-in functions:

Code:
a = 6.5; 
bigD = 40; 
e = 3.25;
 
mydisparity[f_, d_] := ArcTan[f/(bigD + d)] - 
   ArcTan[(a - e)/bigD] + ArcTan[(a - f)/(bigD - d)]
mydisparity[2, 3]

Plot3D[mydisparity[f, d], {f, e - 10, e + 10}, 
  {d, -20, 20}]
 
  • #3
Thanks! I got it to work.
 
Last edited:

Related to Plotting Binocular Disparity in Mathematica - Solve for f & d

What is "Plotting Binocular Disparity in Mathematica - Solve for f & d"?

"Plotting Binocular Disparity in Mathematica - Solve for f & d" is a scientific process used to analyze the differences in visual perception between the two eyes, also known as binocular disparity. This process involves using Mathematica software to plot and solve for the focal length (f) and distance between the eyes (d) in order to accurately represent the depth perception of a 3D scene.

Why is "Plotting Binocular Disparity in Mathematica - Solve for f & d" important?

Understanding binocular disparity is crucial for studying human vision and perception. By accurately plotting and solving for f and d, scientists can gain insights into how the brain processes visual information and interprets depth in a 3D world.

What is the process for "Plotting Binocular Disparity in Mathematica - Solve for f & d"?

The process involves importing a 3D image into Mathematica, converting it to a stereoscopic image, and then using functions such as BinocularDisparityPlot and BinocularDisparitySolve to plot and solve for the values of f and d. These values can then be used to create a more accurate representation of the 3D scene.

What are the potential applications of "Plotting Binocular Disparity in Mathematica - Solve for f & d"?

There are many potential applications for this process, including studying human vision and perception, developing more realistic virtual reality and augmented reality experiences, and improving depth perception in robotic vision systems.

Are there any limitations to "Plotting Binocular Disparity in Mathematica - Solve for f & d"?

While this process can accurately represent depth perception for a 3D scene, it is limited to the capabilities of the Mathematica software and the accuracy of the input data. Additionally, it may not accurately represent the visual perception of individuals with certain vision impairments or conditions.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
19
Views
274
  • Introductory Physics Homework Help
Replies
10
Views
962
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
2K
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
2
Views
695
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
3K
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
1
Views
269
Back
Top