stimupy.papers.domijan2015#
Stimuli from Domijan (2015) https://doi.org/10.3389/fnhum.2015.00093
This module reproduces all of the stimuli used by Domijan (2015) as they were provided to the model described in that paper. Since the stimulus sizes were only defined in pixel-space, there is some ambiguity with respect to the stimulus sizes in degrees visual angle. To help solve this ambiguity, we approximated a realistic resolution of the stimuli (ppd = 10) which is set as default value. However, because of the ambiguity, it is possible to change the stimulus sizes by providing at least two of the following: a shape (in pixels), a visual_size (in degrees) and/or a resolution (in ppd).
Each stimulus is provided by a separate function, a full list can be found as stimupy.papers.domijan2015.__all__
The output of each of these functions is a stimulus dictionary.
For a visual representation of all the stimuli and their mask, simply run this module as a script:
$ python stimuli/papers/domijan2015.py
- __all__(list of str)#
- that are exported by this module when executing
>>> from stimupy.papers.domijan2015 import *
- Type:
list of all stimulus-functions
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
Functions#
Dungeon illusion, Domijan (2015) Fig 6A |
|
Cube illusion, Domijan (2015) Fig 6B |
|
Grating illusion, Domijan (2015) Fig 6C |
|
Ring patterns, Domijan (2015) Fig 7A |
|
Bullseye illusion, Domijan (2015) Fig 7B |
|
Simultaneous brightness contrast, Domijan (2015) Fig 7C |
|
White stimulus, Domijan (2015) Fig 8A |
|
Benarys cross, Domijan (2015) Fig 8B |
|
Todorovic stimulus, Domijan (2015) Fig 9A |
|
Checkerboard contrast-contrast effect, Domijan (2015) Fig 9B |
|
Classic checkerboard contrast with single-check targets, Domijan (2015) Fig 10A |
|
Checkerboard contrast with cross-like targets, Domijan (2015) Fig 10B |
|
Yazdanbakhsh variation of White stimulus, Domijan (2015) Fig 11A |
|
Anderson variation of White stimulus, Domijan (2015) Fig 11B |
|
Howe variation of White stimulus, Domijan (2015) Fig 11C |
- dungeon(visual_size=Visual_size(height=11.0, width=22.0), ppd=10, shape=(110, 220))[source]#
Dungeon illusion, Domijan (2015) Fig 6A
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (11, 22)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (110, 220)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- cube(visual_size=Visual_size(height=10.0, width=20.0), ppd=10, shape=(100, 200))[source]#
Cube illusion, Domijan (2015) Fig 6B
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (10, 20)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (100, 200)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- grating(visual_size=Visual_size(height=10.0, width=22.0), ppd=10, shape=(100, 220))[source]#
Grating illusion, Domijan (2015) Fig 6C
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (10, 22)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (100, 220)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- rings(visual_size=Visual_size(height=10.0, width=20.0), ppd=10, shape=(100, 200))[source]#
Ring patterns, Domijan (2015) Fig 7A
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (10, 20)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (100, 200)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- bullseye(visual_size=Visual_size(height=10.0, width=20.0), ppd=10, shape=(100, 200))[source]#
Bullseye illusion, Domijan (2015) Fig 7B
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (10, 20)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (100, 200)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- simultaneous_brightness_contrast(visual_size=Visual_size(height=10.0, width=20.0), ppd=10, shape=(100, 200))[source]#
Simultaneous brightness contrast, Domijan (2015) Fig 7C
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (10, 20)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (100, 200)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- white(visual_size=Visual_size(height=8.0, width=8.0), ppd=10, pad=True, shape=(80, 80))[source]#
White stimulus, Domijan (2015) Fig 8A
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (8, 8)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (80, 80)
pad (bool) – If True, include original padding (default: False)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- benary(visual_size=Visual_size(height=10.0, width=10.0), ppd=10, shape=(100, 100))[source]#
Benarys cross, Domijan (2015) Fig 8B
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (10, 10)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (100, 100)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- todorovic(visual_size=Visual_size(height=10.0, width=20.0), ppd=10, shape=(100, 200))[source]#
Todorovic stimulus, Domijan (2015) Fig 9A
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (10, 20)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (100, 200)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- checkerboard_contrast_contrast(visual_size=Visual_size(height=8.0, width=16.0), ppd=10, shape=(80, 160), pad=True)[source]#
Checkerboard contrast-contrast effect, Domijan (2015) Fig 9B
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (8, 16)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (80, 160)
pad (bool) – If True, include original padding (default: False)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- checkerboard(visual_size=Visual_size(height=8.0, width=8.0), ppd=10, shape=(80, 80), pad=True)[source]#
Classic checkerboard contrast with single-check targets, Domijan (2015) Fig 10A
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (8, 8)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (80, 80)
pad (bool) – If True, include original padding (default: False)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- checkerboard_extended(visual_size=Visual_size(height=8.0, width=8.0), ppd=10, shape=(80, 80), pad=True)[source]#
Checkerboard contrast with cross-like targets, Domijan (2015) Fig 10B
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (8, 8)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (80, 80)
pad (bool) – If True, include original padding (default: False)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- white_yazdanbakhsh(visual_size=Visual_size(height=8.0, width=8.0), ppd=10, shape=(80, 80), pad=True)[source]#
Yazdanbakhsh variation of White stimulus, Domijan (2015) Fig 11A
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (8, 8)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (80, 80)
pad (bool) – If True, include original padding (default: False)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- Yazdanbakhsh, A., Arabzadeh, E., Babadi, B., and Fazl, A. (2002).
Munker-White-like illusions without T-junctions. Perception 31, 711-715. https://doi.org/10.1068/p3348
- white_anderson(visual_size=Visual_size(height=10.0, width=10.0), ppd=10, shape=(100, 100), pad=True)[source]#
Anderson variation of White stimulus, Domijan (2015) Fig 11B
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (10, 10)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (100, 100)
pad (bool) – If True, include original padding (default: False)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Anderson, B. L. (2001).
Contrasting theories of White’s illusion. Perception, 30, 1499-1501.
- Blakeslee, B., Pasieka, W., & McCourt, M. E. (2005).
Oriented multiscale spatial filtering and contrast normalization: a parsimonious model of brightness induction in a continuum of stimuli including White, Howe and simultaneous brightness contrast. Vision Research, 45, 607-615.
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- white_howe(visual_size=Visual_size(height=10.0, width=10.0), ppd=10, shape=(100, 100), pad=True)[source]#
Howe variation of White stimulus, Domijan (2015) Fig 11C
- Parameters:
visual_size (Sequence[Number, Number], Number, or None) – visual size [height, width] in degrees, default: (10, 10)
ppd (Sequence[Number, Number], Number, or None) – pixels per degree [vertical, horizontal], default: 10
shape (Sequence[Number, Number], Number, or None) – shape [height, width] in pixels, default: (100, 100)
pad (bool) – If True, include original padding (default: False)
- Returns:
dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters
- Return type:
References
- Blakeslee, B., Pasieka, W., & McCourt, M. E. (2005).
Oriented multiscale spatial filtering and contrast normalization: a parsimonious model of brightness induction in a continuum of stimuli including White, Howe and simultaneous brightness contrast. Vision Research, 45, 607-615.
- Domijan, D. (2015).
A neurocomputational account of the role of contour facilitation in brightness perception. Frontiers in Human Neuroscience, 9, 93. https://doi.org/10.3389/fnhum.2015.00093
- Howe, P. D. L. (2001).
A comment on the Anderson (1997), the Todorovic (1997), and the Ross and Pessoa (2000) explanations of White’s effect. Perception, 30, 1023-1026