Visual Acuity: Lesson 2

In this lesson, you will learn how to:

- duplicate an experiment,
- use a timeline to present simultaneous stimuli,
- create shape stimuli.

This lesson assumes you have been through Lesson 1 of this tutorial and became familiar with adding and inspecting the various types of events.

Difficulty: 2/5
Duration: 20 mn

EFFECT OF CROWDING BARS

In Lesson 1, you learned how to create a basic experiment to measure visual acuity threshold for single letters. This lesson makes the basic visual acuity task more elaborate by measuring the effect of crowding bars which is known to be significant in amblyopic subjects.

Step 1: Duplicating the Experiment

From the Designer panel, select the Visual Acuity experiment designed in Lesson 1, and press the ⌘-D keystroke (or select Duplicate from the Edit menu). The duplicate appears at the top level of the table with the 'copy' suffix added to the name of the original event. Rename the copy as Visual Acuity 2.

The above message appears when changing the name of an experiment which ID already exists in the session database. Since we are working on a copy, click the No button to automatically create a new ID for this new experiment.

Tip: There are alternative ways to duplicate an event:
- Using the regular Copy/Paste with the -C & -V keystrokes; events copied this way are always pasted in the Storage area of the table.
- Use -D to duplicate the selected event at the top of the Designer table.
- Option-drag an event to make a copy at the dragged position.

To add crowding bars to the optotypes, one needs to create 4 bar stimuli presented simultaneously on the left and the right of the optotypes, and above and below them.

Step 2: Adding a Timeline Event

First, we will add a timeline event:

1) option-click on the arrow in front of the Visual Acuity 2 experiment to reveal its whole hierarchy,

2) select the Optotype Discrimination event and click on the '+' folder icon to add a new group event,

3) set the category of this new group event to Composed Stimuli with the Timeline sub-category and change its title to Timeline.

Step 3: Adding the Crowding Bars

Click on and drag the Optotypes event INTO the Timeline event so it is indented to the right as illustrated.

We will now add bar stimuli as the same level as the Optotypes stimuli so they will appear in the same timeline:

1) select the Timeline event you just created and add a new leaf event by clicking on the file icon with the '+' symbol in the bottom toolbar,

2) set the category of this event to Visual Stimulus with the Shape sub-category, and change its title to Left Bar.

Select the Left Bar event and edit its properties by clicking on the Inspect button (or press ⌘-i).

In the properties panel, control-click on the Shape tab to select the Shape Stimulus if it is not yet selected.

The properties page for the Visual Stimulus event consists of four sections:

1) A top section common to all types of visual stimulus that specifies their position, duration, and appearance,

2) A middle section that specifies the basic shape properties,

3) A bottom-left section that specifies the transforms to be applied on the shape,

4) A real-time preview in the bottom right-hand corner that can be zoomed in and out.

Let's customize each of these sections to create a vertical bar:

1) set the number of sides to 4 to create a parallelogram,

2) set its orientation to 45 deg to specify a rectangle shape,

3) set its aspect-ratio to 0.2 (1/5) so the rectangle is 5 times taller than it is wide,

4) indicate the rectangle size to be specified in terms of its Side Size rather than its Radius and set the side size (rectangle height) to the optotype height expressed in deg: 5*[arcminsize:6]/60

Remember that arcminsize refers to the thickness of the letter strokes in the Sloan font in arc minutes and that the width and height of each Sloan optotype corresponds to 5 times this stroke thickness. Note also the colon (:) after the variable name followed by a value. When using a variable-based expression to define a stimulus parameter, the preview is generated assuming a default value of 0 for each variable. To display a preview for a variable value different from the default one, add the desired value preceded by a colon before the closing bracket (eg: [arcminsize:6]). This value is used only for preview purposes and has no effect on the experimental design or during its execution.

5) set the bar horizontal position to the left of the optotype at the desired distance, eg. with a separating space of half the optotype size: -5*[arcminsize:6]/60

6) set the duration of the bar to the same value as the optotype presentation duration,

7) in the Color Space section, select the Luminance option and set its value to 0% to get a pure black bar,

Click on the OK button to validate the changes and return to the Designer panel.

Now create the additional bars by duplicating 3 times the Left Bar stimulus and rename the copies to Right Bar, Top Bar and Bottom Bar as illustrated.

For the right bar, edit its properties and change the bar horizontal position to: 5*[arcminsize:6]/60
Then click on the OK button to validate the changes and return to the Designer panel.

For the horizontal bars (Top Bar and Bottom Bar) modify their properties as follows:

1) set their aspect-ratio to 5 so the rectangle is 5 times wider than it is tall,

2) reduce the side size (rectangle height) to the stroke thickness expressed in deg: [arcminsize:6]/60

3) set the bar vertical position to above or below the optotype at the desired distance: ± 5*[arcminsize:6]/60

Click on the OK button to validate the changes and return to the Designer panel.

Step 4: Finalize the Timeline Event

Edit the properties of the Timeline event to verify that each stimulus event appear correctly inside the timeline, that is presented simultaneously and for the same duration. Then click on the OK button to return to the Designer panel.

You can now run the experiment and measure visual acuity in presence of crowding bars!

Remember: To save the session results in the results database for future retrieval, always make sure to:

- run the experiment in full-screen mode by toggling the display icon in the Designer bottom toolbar,
- select the subject and group in the Session Information panel,
- click on the Run Session button in the Session Information panel.

Conclusion

In this lesson, you learned how to duplicate an experiment, use a timeline to present simultaneous stimuli, and create shape stimuli. You also learned how to inspect each level of the results hierarchy. Most important, you learned in Lessons 1 and 2 how to create a complete experiment to measure visual acuity, one of the most fundamental properties of the visual system.

If you wish to expand this experiment by adding temporal masking or spatial context to the stimulus, or by using dynamic stimuli, you should consider the following lessons to learn how to:

- interleave several staircases to investigate the effect of another parameter (Lesson 2 on Contrast Sensitivity),
- implement a sandwich paradigm with forward and feedback masking noise (Lesson 3 of Orientation Discrimination),
- add a spatial and temporal context (Lesson 4 of Orientation Discrimination).

Back to Tutorials

© 2006-2024 KyberVision Japan LLC. All rights reserved.