darkmoon3d
09-17-2009, 12:04 AM
I'm working on a project involving tracking several boxes from two video cameras. Am tracing with 4 points the top of every box and would like to obtain position and orientation from this.
a------b
| \.... / |
| . \ / ..|
| ...e .. |
| . / \ ..|
| /.... \ |
d------c
Have figured that I could simply find midpoint between two points such as (a and c) or (b and d) and then take midpoint from those. For orientation am trying to find how to calculate angle from (a to d). Is there a particular formula to find these?
a------b
| \.... / |
| . \ / ..|
| ...e .. |
| . / \ ..|
| /.... \ |
d------c
Have figured that I could simply find midpoint between two points such as (a and c) or (b and d) and then take midpoint from those. For orientation am trying to find how to calculate angle from (a to d). Is there a particular formula to find these?
