corrugated_mondrian#
You can find an interactive version of this example here
- stimupy.stimuli.mondrians.corrugated_mondrian(visual_size=None, ppd=None, shape=None, nrows=None, ncols=None, depths=0, intensities=(0, 1), target_indices=(), intensity_background=0.5, intensity_target=None)#
Corrugated Mondrian
- 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
depths (Sequence[Number, ... ], Number, or None (default)) – depth of Mondrian parallelograms per row
intensities (nested tuples) – intensities of mondrians; as many tuples as there are rows and as many numbers in each tuple as there are columns
target_indices (nested tuples) – indices of targets; as many tuples as there are targets with (y, x) indices
intensity_background (float) – intensity value for background
intensity_target (float) – target intensity. If None, use values defined in intensities
- 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
- Adelson, E. H. (1993).
Perceptual organization and the judgment of brightness. Science, 262, 2042-2044. https://doi.org/10.1126/science.8266102