generalized#
You can find an interactive version of this example here
- stimupy.stimuli.sbcs.generalized(visual_size=None, ppd=None, shape=None, target_size=None, target_position=None, intensity_background=0.0, intensity_target=0.5, rotation=0.0)#
Simultaneous contrast stimulus with free target placement
- Parameters:
visual_size (Sequence[Number, Number], Number, or None (default)) – visual size [height, width] of image, 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 image, in pixels
target_size (float or (float, float)) – size [height, width] of the target, in degrees visual angle
target_position (float or (float, float)) – position of the target in degree visual angle (height, width); if None, place target centrally
intensity_background (float, optional) – intensity value for background, by default 0.0
intensity_target (float, optional) – intensity value for target, by default 0.5
rotation (float, optional) – rotation (in degrees), counterclockwise, by default 0.0 (horizontal)
- 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
- Chevreul, M. (1855).
The principle of harmony and contrast of colors.