Skip to content

Commit

Permalink
derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
scottshambaugh authored Jan 18, 2024
1 parent 6340f2d commit 7267573
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ These are not [*auto*stereograms](https://en.wikipedia.org/wiki/Autostereogram),
</p>

## Derivation of Geometry
Two eyes with separation `IPD` are looking at a point a distance `z` offset from a focal plane at distance `d`, resulting in view angle `θ`. If this point were projected back to the focal plane, it would be offset by `δ` from where it visually appears on that plane. This offset `δ` is used to displace each point in the stereogram for each eye based on its `z` value to achieve the stereoscopic effect. The `eye_balance` parameter allocates the total relative displacement of `` between the two eyes.
Two eyes with separation `IPD` are looking at a point a distance `z` offset from a focal plane at distance `d`, resulting in view angle `θ`. If this point were projected back to the focal plane, it would be offset by `δ` from where it visually appears on that plane. This offset `δ` is used to displace each point in the 2D stereograms and anaglyphs for each eye based on its `z` value to achieve the stereoscopic effect. The `eye_balance` parameter allocates the total relative displacement of `` between the two eyes.

For 3D stereograms, the azimuth view angle for the two plots is simply shifted by `θ`, with no modification to the data.

```
θ = arctan((d - z) / (IPD / 2))
Expand Down

0 comments on commit 7267573

Please sign in to comment.