Wednesday, May 23, 2012

Week 8 Determining Surface Intersection.

Now that we know which way the object we are tracking, and we are able to capture where it is on a 2d plane, we need to determine where it will intersect our capture surface.  To do this, we need to make two assumptions.

One: We know the measurements of the object we are tracking and are able to convert them into pixel coordinates.

Two: We assume the surface we are to intersect is on the same plane of the source of capture.

My method shall be to then project a ray from the tracked object to the surface to determine location.

---------

Another possibility I can start with is to assume I know our source objects dimensions, or if these dimensions can be configured, I can then determine the distance of the tracked object by having two rays cast when looking at two points, and then using the angle between them and a little bit of trigonometry to determine distance of the source.  From there, the methodology should be the same.

Something like this...:

No comments:

Post a Comment