stimupy.stimuli.wedding_cakes#

Demos#

Functions#

wedding_cake

Wedding cake stimulus

wedding_cake(visual_size=None, ppd=None, shape=None, L_size=None, target_height=None, target_indices1=None, target_indices2=None, intensity_bars=(0.0, 1.0), intensity_target=0.5)[source]#

Wedding cake stimulus

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

  • L_size ((float, float, float)) – size of individual jags (height, width, thickness) in degree visual angle

  • target_height (float) – height of targets in degree visual angle

  • target_indices1 (nested tuples) – target indices with intensity1-value; as many tuples as there are targets each with (y, x) indices

  • target_indices2 (nested tuples) – target indices with intensity2-value; as many tuples as there are targets each with (y, x) indices

  • intensity_bars ((float, float)) – intensity values of the bars

  • intensity_target (float) – intensity value of targets

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:

dict[str, Any]

References

Clifford, C. W. G., & Spehar, B. (2003).

Using colour to disambiguate contrast and assimilation in White’s effect. Journal of Vision, 3, 294a. https://doi.org/10.1167/3.9.294