stimupy.stimuli.dungeons#
Demos#
Functions#
Dungeon stimulus (Bressan, 2001) with diamond target. |
- dungeon(visual_size=None, ppd=None, shape=None, cell_size=None, n_cells=None, target_radius=1, intensity_background=0.0, intensity_grid=1.0, intensity_target=0.5)[source]#
Dungeon stimulus (Bressan, 2001) with diamond target.
- Parameters:
visual_size (Sequence[Number, Number], Number, or None (default)) – visual size [height, width] of grating, in degrees
ppd (Sequence[Number, Number], Number, or None (default)) – pixels per degree [vertical, horizontal]
shape (Sequence[Number, Number], Number, or None (default)) – shape [height, width] of grating, in pixels
cell_size (Sequence[Number, Number], Number, or None (default)) – size of individual cell (height, width)
n_cells (Sequence[Number, Number], Number, or None (default)) – the number of square cells (not counting background) per dimension
target_radius (int) – the “Manhattan radius” of the diamond target in # cells
intensity_background (float) – intensity value for background
intensity_grid (float) – intensity value for grid cells
intensity_target (float) – intensity value for target
- Returns:
dict with the stimulus (key: “img”), mask with integer index for each target (key: “target_mask”), and additional keys containing stimulus parameters
- Return type:
References
- Bressan, P. (2001).
Explaining lightness illusions. Perception, 30(9), 1031-1046. https://doi.org/10.1068/p3109
- 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