<p>In theory you can use the geometry of your setup to transform your data to the orientation reffered in the paper you mentioned using <a href="https://en.wikipedia.org/wiki/Scheimpflug_principle" rel="nofollow noreferrer">Scheimpflug Principle</a> and then use the methods provided in it.</p>
<p>Practically, you can only approximate the geometry of your setup. If you have some idea about angles in something like this</p>
<p><a href="https://i.sstatic.net/R6Qrr.gif" rel="nofollow noreferrer"><img src="https://i.sstatic.net/R6Qrr.gif" alt="enter image description here" /></a></p>
<p>please let me know, I might be able to do the math for you.</p>
<p>EDIT: The lens plane is parallel to image plane in cameras so now it is just the question of orientation of subject plane and lens plane(camera plane).</p>

CC BY-SA 4.0
2021-01-02T23:09:22.457Z
Thank you for your comment! I'm not sure I totally understand how to fill in the value of the angles in the figure you attached to your response, but I updated my original post to include a diagram of the position of the camera relative to the animal/eye. Is this information sufficient?
jbhunt
CC BY-SA 4.0
2020-12-30T20:50:05.757Z
2020-12-30T20:56:12.350Z
2020-12-30T20:56:12.350Z
Notwen
<p>I am tracking eye movements in mice passively viewing naturalistic stimuli or experimental stimuli meant to elicit reflexive eye movements. I would like to define a transformation function that translates displacement in pixels (x, y) to degrees of visual angle (azimuth, elevation). Here is an example image:</p>
<p><a href="https://i.sstatic.net/Bthcg.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Bthcg.png" alt="Example Image" /></a></p>
<p>I have seen <a href="https://pubmed.ncbi.nlm.nih.gov/15099710/" rel="nofollow noreferrer">this</a> paper referenced several times in other papers that track eye movements in mice, but it seems like the position of my cameras relative to the eye is different than what is shown in the paper and I worry this will affect the validity of the transformation.</p>
<p>I have the ability to track any feature of the eye that is useful. Right now I am tracking the center of the pupil, the corners of the eye, and the center of the top and bottom eyelid.</p>
<p>EDIT #1</p>
<p>Here is a description of the camera's position relative to the animal. The solid black object represents the animal (A=anterior, P=posterior, D=dorsal, V=ventral). The angle from each orientation represents the angle from the animal to the camera.
<a href="https://i.sstatic.net/zWMm3.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zWMm3.jpg" alt="enter image description here" /></a></p>

<eye-movement>
How to estimate eye-in-head rotation (degrees of visual angle) from a 2D video of the eye?
jbhunt
# How to estimate eye-in-head rotation (degrees of visual angle) from a 2D video of the eye?

(Asked by: username_0 on 2020-12-29)

I am tracking eye movements in mice passively viewing naturalistic stimuli or experimental stimuli meant to elicit reflexive eye movements. I would like to define a transformation function that translates displacement in pixels (x, y) to degrees of visual angle (azimuth, elevation). Here is an example image:

[![Example Image](https://i.sstatic.net/Bthcg.png)](https://i.sstatic.net/Bthcg.png)

I have seen [this](https://pubmed.ncbi.nlm.nih.gov/15099710/) paper referenced several times in other papers that track eye movements in mice, but it seems like the position of my cameras relative to the eye is different than what is shown in the paper and I worry this will affect the validity of the transformation.

I have the ability to track any feature of the eye that is useful. Right now I am tracking the center of the pupil, the corners of the eye, and the center of the top and bottom eyelid.

EDIT #1

Here is a description of the camera's position relative to the animal. The solid black object represents the animal (A=anterior, P=posterior, D=dorsal, V=ventral). The angle from each orientation represents the angle from the animal to the camera.
[![enter image description here](https://i.sstatic.net/zWMm3.jpg)](https://i.sstatic.net/zWMm3.jpg)

**Tags:** eye-movement


---

## 1 answers

### Answer by username_1 on 2020-12-30. Score: 1

In theory you can use the geometry of your setup to transform your data to the orientation reffered in the paper you mentioned using [Scheimpflug Principle](https://en.wikipedia.org/wiki/Scheimpflug_principle) and then use the methods provided in it.

Practically, you can only approximate the geometry of your setup. If you have some idea about angles in something like this

[![enter image description here](https://i.sstatic.net/R6Qrr.gif)](https://i.sstatic.net/R6Qrr.gif)

please let me know, I might be able to do the math for you.

EDIT: The lens plane is parallel to image plane in cameras so now it is just the question of orientation of subject plane and lens plane(camera plane).

> **Comments:**
> **username_0**: Thank you for your comment! I'm not sure I totally understand how to fill in the value of the angles in the figure you attached to your response, but I updated my original post to include a diagram of the position of the camera relative to the animal/eye. Is this information sufficient?  

---

