on_grating#

on_grating stimulus example

You can find an interactive version of this example here

stimupy.stimuli.gratings.on_grating(small_grating_params, large_grating_params)#

Small grating on a larger grating

Parameters:
  • small_grating_params (dict) – kwargs to generate small grating

  • large_grating_params (dict) – kwargs to generate larger grating

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:

dict[str, Any]

References

White, M. (1981).

The effect of the nature of the surround on the perceived lightness of grey bars within square-wave test grating. Perception, 10, 215-230. https://doi.org/10.1068/p100215