Mathematical relationship to control camera heading

Click For Summary

Discussion Overview

The discussion revolves around finding a mathematical relationship between the direction a person's head is facing and the heading of a camera positioned at a distance. The focus is on achieving a synchronized orientation between the head and the camera in a horizontal plane, specifically addressing pan (yaw) motion.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant seeks a mathematical relationship to align the camera heading with the direction of their head, emphasizing the need for a reference transformation.
  • Another participant argues that the demands are self-contradictory, noting that while the head's orientation can define a line, the exact point along that line requires additional information to determine the camera's orientation.
  • A different viewpoint suggests that the camera cannot simply follow the line of sight but must instead find the intersection point with the nearest object to establish a target for the camera to focus on.
  • Trigonometric relationships are proposed to calculate the necessary heading and elevation angles based on the target's coordinates relative to the camera's position.
  • One participant mentions the potential use of sensors to track pupil dilation as a means to approximate focus, suggesting that this could aid in determining the camera's orientation.
  • Another suggestion involves mounting a low-resolution camera on the head to use digital image processing for aligning the images from both cameras.

Areas of Agreement / Disagreement

Participants express differing views on the feasibility and methods of achieving the desired camera alignment, indicating that multiple competing perspectives remain without a consensus on a definitive solution.

Contextual Notes

The discussion highlights limitations related to the assumptions about the distance from the head to the target and the specifics of the situation that may affect the proposed solutions.

naser1234
Messages
1
Reaction score
0
Hi everyone, I want to find a mathematical relationship between my head direction and the direction of a camera placed at a distance. The objective is to make the camera heading to same point where my head is looking at. Both my head and the camera are in the horizontal plane and the motion will be Pan (yaw) motion. Some type of reference transformation has to be applied but I don’t know how to find the relation of my heading verses the camera heading.
 
Physics news on Phys.org
If I understand the question, I think the answer is unpleasant: your demands are self-contradictory.

Even if we assume you are always looking "forward" relative to your heads position, that only determines a line -- you could be looking at any particular point along that line, and each one would require a different orientation from the camera.

So, for each orientation, you need some way to decide upon a distance from your head as well. Once you have that, it's straightforward trigonometry.

Alas, whether or not it's feasible to get that distance, or at least a passable approximation, is something that is closely tied to the specifics of your situation. :frown:
 
You can't slave your camera that way. It will just look in a parallel direction to your line of sight.

You need to find the intersection point between your line of sight and the first object encountered/nearest object. You will obtain a point. Let's call this point the 'target'.

http://sonyafterdark.webs.com/Diverse/RayTracing.pdf" you compute the target. Sc is the field of view constant.

The camera must look at the target. This might be the way to do it, if you work with angles to describe orientation. Try and see if it's correct.

\alpha = \arcsin(\frac{target.x - camera.x}{target.z - camera.z})

α is the heading you need.

\beta = \arcsin(\frac{target.y - camera.y}{target.z - camera.z})

β is the elevation you need.
 
Last edited by a moderator:
Hurkyl said:
If I understand the question, I think the answer is unpleasant: your demands are self-contradictory.

Even if we assume you are always looking "forward" relative to your heads position, that only determines a line -- you could be looking at any particular point along that line, and each one would require a different orientation from the camera.

So, for each orientation, you need some way to decide upon a distance from your head as well. Once you have that, it's straightforward trigonometry.

Alas, whether or not it's feasible to get that distance, or at least a passable approximation, is something that is closely tied to the specifics of your situation. :frown:

If you use sensors to track the direction and dilation of your pupils, you might be able to do it since I believe that pupil dilation relates to focus. I know the eye doctor can tell when you've focused on something and determine your prescription just by watching your pupils.

It might be easier to mount a small low resolution camera to your head and then use digital image processing to match the image from the horizontal displaced camera with the image from the head mounted camera.
 
Last edited:

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
2
Views
1K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 35 ·
2
Replies
35
Views
2K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K