rectangle_generalized#
You can find an interactive version of this example here
- stimupy.stimuli.todorovics.rectangle_generalized(visual_size=None, ppd=None, shape=None, target_size=None, target_position=None, covers_size=None, covers_x=None, covers_y=None, intensity_background=0.0, intensity_target=0.5, intensity_covers=1.0)#
Rectangular target and rectangular covers added with flexible number of covers and flexible target and cover placement
- 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
target_size (float or (float, float)) – size of the target in degrees of visual angle (height, width)
target_position (float or (float, float)) – coordinates where to place the target
covers_size (float or (float, float)) – size of the covers in degrees of visual angle (height, width)
covers_x (tuple of floats) – x coordinates of covers; as many covers as there are coordinates
covers_y (tuple of floats) – y coordinates of covers; as many covers as there are coordinates
intensity_background (float) – intensity value for background
intensity_target (float) – intensity value for target
intensity_covers (Sequence[Number, ...] or Number) – intensity value for covers
- Returns:
dict with the stimulus (key: “img”), mask with integer index for the target (key: “target_mask”), and additional keys containing stimulus parameters
- Return type:
References
- Blakeslee, B., & McCourt, M. E. (1999).
A multiscale spatial filtering account of the White effect, simultaneous brightness contrast and grating induction. Vision Research, 39, 4361-4377.
- Pessoa, L., Baratoff, G., Neumann, H., & Todorovic, D. (1998).
Lightness and junctions: variations on White’s display. Investigative Ophthalmology and Visual Science (Supplement), 39, S159.
- Todorovic, D. (1997).
Lightness and junctions. Perception, 26, 379-395.