gabors#

gabors stimulus example

You can find an interactive version of this example here

stimupy.stimuli.plaids.gabors(gabor_parameters1, gabor_parameters2, weight1=1, weight2=1)#

Draw plaid consisting of two gabors

Parameters:
  • gabor_parameters1 (dict) – kwargs to generate first Gabor

  • gabor_parameters2 (dict) – kwargs to generate second Gabor

  • weight1 (float) – weight of first Gabor (default: 1)

  • weight2 (float) – weight of second Gabor (default: 1)

Returns:

dict with the stimulus (key: “img”), mask with integer index for each phase (key: “grating_mask”), and additional keys containing stimulus parameters

Return type:

dict[str, Any]