Skip to main content
. 2013 Nov 15;8(11):e78058. doi: 10.1371/journal.pone.0078058

Figure 2. Schematic software overview.

Figure 2

The program consists of three components. The component patternGen (purple) generates arbitrary stimuli, consisting of a texture (bitmap file) and a rotation protocol (text file). It also adjusts the background illumination value to gain a specific absolute intensity set by the user in the GUI. The omr monitor (light blue) implements the communication with the camera, the head tracking and the user interface during an experiment. Images are acquired through the MATLAB image acquisition toolbox and are used by the tracking module to determine the animal's head location. The live view is displayed in an on-screen GUI (arenaCtrl) in which the user can also adjust tracking parameters. The retrieved head position is used to recalculate the location of the stimulus pattern. The updated translation and rotation parameters are passed to the third component, omr arena (red), which presents the cylinder at the correct position on the four screens through SDL/OpenGL.