Difference between revisions of "Optitrak + Projector touch table/surface"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
# read in data sent from the optitrak system, and furthermore | # read in data sent from the optitrak system, and furthermore | ||
# set the table top as | # set the table top plane, as understood by the Optitrak, into variables for reference in matlab, and | ||
# transform the native coordinate system of the optitrak (x z y ) into another, possibly more familiar coordinate system (x y z). | # transform the native coordinate system of the optitrak (x z y) into another, possibly more familiar coordinate system (x y z). | ||
This function should be called before opening a main window with psychtoolbox. |
Revision as of 18:34, 19 April 2012
Matlab scripts
In place of the matlab code for reading in optitrak data, the following matlab functions can be used to:
- read in data sent from the optitrak system, and furthermore
- set the table top plane, as understood by the Optitrak, into variables for reference in matlab, and
- transform the native coordinate system of the optitrak (x z y) into another, possibly more familiar coordinate system (x y z).
This function should be called before opening a main window with psychtoolbox.