PTB Image Experiment Settings

PTB Image Settings PTB Image Experiment Settings#

PTB Image Experiments Settings GUI.

The Image Settings GUI allows the user to quickly set parameters for experiments involving the visual presentation of static images. All variables controlled by the Image settings GUI are saved to the Image field of the Params object.

Tabs#

  • Image directory: full path of the folder to load image stimuli from.

  • Background directory: full path of the folder to load background images from. If selected, background images will be presented behind the stimulus images and hence will only be visible where the stimulus image contains transparent pixels.

  • Image format: File format of the images to load. Images in other formats from the selected image directory will be ignored.

  • Subdirectories: Select how to treat subdirectories found inside the image directory:

    • Ignore: only load images found in the top level of the image directory.

    • Load all: search the image directory recursively and load all images from any subdirectories.

    • Use as conditions: treat each subdirectory found in the image directory as a separate experimental condition and load the images from each.

  • Conditions: If the Subdirectories field above is set to Use as conditions then this dropdown menu will be populated with the subdirectory names. Selecting a name in this dropdown menu will make the image preview jump to the first image belonging to that condition.

  • Backgrounds: Select how to use background images found in the Background directory. If there is a specific background image for each stimulus then background images should be named with a similar convention to the images so that they retain the same order. If there are fewer background images than stimulus images then the background can either be randomized per trial or randomized per block.

  • SDS 3D format?: Select this checkbox if the stimuli are in side-by-side (SBS) stereoscopic 3D format. For stereoscopic presentation, settings must also be updated in PTB Display Settings GUI.

  • Present fullscreen:

  • Stimulus width (units):

  • Stimulus width:

  • Use alpha channel?:

  • Color:

  • Apply mask:

  • Image rotation (°):

  • Image contrast:

  • Normalize luminance: Luminance normalization of a set of images using the SHINE Toolbox (Willenbockel et al., 2010).

  • Stimulus order:

  • Trials per run:

  • Stim. per trial:

  • Stim. duration (ms):

  • Inter-stim interval (ms):

  • Inter-trial interval (ms):

  • Temporal jitter (mean ms):

  • Temporal jitter (SD ms):

  • Add fixation blocks:

  • Blocks per run:

  • Stim. Per block:

  • Stim. Duration (ms):

  • Inter-stim interval (ms):

  • Sync stim to TTL?:

Stimulus Panel#

  • No. Images: This field displays the number of image files matching the specified Image format that are located in the specified badge:Image directory,badge-primary.

  • Image res (px): If all of the images have the same dimensions then these fields display the horizontal (X) and vertical (Y) resolution of the images in pixels.

  • Preview image: This dropdown box lists the filenames of all located stimuli. The user can select any image from the dropdown list at it will load in the preview window below.

Options Panel#

The Options panel is standardized across PTB Settings GUIs and contains buttons with icons indicating their function as listed below. You can also hover the cursor over the GUI buttons to see the tooltips description of each button’s function.

Icon

Function

Description

Save

Save

Saves the current Image parameter values to the currently loaded Parameters file.

Load

Load

Allows the user to select a different Parameters file from the current one, and load only the Image parameters from that file.

Documentation

Help

Opens the PTB Image Settings GUI documentation page (this page) in a web browser.

Close GUI

Close

Closes the PTB Image Settings GUI and returns the updated variables to the Params structure of the main Psych Toolbar.

Load Textures

Load im

Loads the selected images into PTB textures on the GPU ready for the experiment to run. Only enabled when a PTB window has already been opened.

Params.Image fields#

Subfield

Full field

Description

Source

Params.Image.Source.ImDir

Params.Image.Source.BackgroundDir

Params.Image.Source.Format

Params.Image.Source.SubDirOpt

Params.Image.Source.SBS

Transform

Params.Image.Transform.Fullscreen

Params.Image.Transform.Diameter

Params.Image.Transform.UseAlpha

Params.Image.Transform.ColorMode

Params.Image.Transform.MaskType

Params.Image.Transform.Rotation

Params.Image.Transform.Contrast

Params.Image.Transform.SizeUnits