| Home | Trees | Indices | Help |
|
|---|
|
|
A simple stimulus for loading images from a file and presenting at exactly the resolution and color in the file (subject to gamma correction if set).
Unlike the PatchStim, this type of stimulus cannot be rescaled, rotated or masked (although flipping horizontally or vertically is possible). Drawing will also tend to be marginally slower, because the image isn't preloaded to the gfx card. The advantage, however is that the stimulus will always be in its original aspect ratio, with no interplotation or other transformation. It is always
SimpleImageStim does not support a depth parameter (the OpenGL method that draws the pixels does not support it). Simple images will obscure any other stimulus type.
Also, unlike the PatchStim (whose textures should be square and power-of-two in size, there is no restriction on the size of images for the SimpleImageStim
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Method Details |
:Parameters:
win :
a :class:`~psychopy.visual.Window` object (required)
image :
The filename, including relative or absolute path. The image
can be any format that the Python Imagin Library can import
(which is almost all).
units : **None**, 'norm', 'cm', 'deg' or 'pix'
If None then the current units of the :class:`~psychopy.visual.Window` will be used.
See :ref:`units` for explanation of other options.
pos :
a tuple (0.0,0.0) or a list [0.0,0.0] for the x and y of the centre of the stimulus.
The origin is the screen centre, the units are determined
by units (see above). Stimuli can be position beyond the
window!
contrast :
How far the stimulus deviates from the middle grey.
Contrast can vary -1:1 (this is a multiplier for the
values given in the color description of the stimulus)
opacity :
1.0 is opaque, 0.0 is transparent
|
|
|
|
Parameters:
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Nov 3 14:03:45 2010 | http://epydoc.sourceforge.net |