Documentation Center    • Trial Software   • Product Updates
Laser Tracking  This example shows how to track a moving laser
dot.  Using the Image Acquisition Toolbox™, image data streams
from a camera are acquired directly into MATLAB®. These images
are used to track objects in the camera's view. For this
example, the object being tracked is the dot produced by a laser
pointer.  The monitor of a computer running MATLAB is placed in
the camera's view while a laser pointer shines a red dot on a
MATLAB figure window. The camera is used to acquire images of
the MATLAB figure window while the laser pointer moves around.
By tracking the movement of the laser dot, the laser pointer can
be used as a pointer device similar to a mouse.  The first task
involves calibrating the data to establish a relationship
between the acquired image pixels and the MATLAB figure axes.
Once this relationship is established, the laser dot can be
tracked as it moves around within the MATLAB figure window.
This example uses a set of uti