|
MatVis format: MatVis('function name', additional parameters...)
Function: 'flashImage'
Load a spatial pattern into a temporary buffer which can be flipped to the vidoe screen on the next vertical
sync pulse. .
Parameters :
('flashImage', origin, flip, image)
origin = row and column number to start loading the image, relative to the upper left corner of the physical screen.
flip = if set to one, present the image on the screen at next vertical sync pulse.
image = the spatial pattern to be loaded into the buffer.
Return:
1 = indicates an internal error occurred in MatVis
0 = successful completion of command
Description:
To use this functions you must have first called 'init', 'trial' and 'run' functions. This function provides
a method of presenting an image whenever desired, by passing the more complicated steps required to setup a trial.
It might be used to put up an adaptation image before presenting the trial test pattern.
Examples:
1) Load three noise patterns into the buffer and then present it.
background = rand(100,100)*200;
MatVis('flashImage',[10 10], 0,background);
MatVis('flashImage',[100 100], 0,background);
MatVis('flashImage',[210 310], 1,background);
See Also:
spatialWindow spatialWindowS temporal trial spatial run init
|