stimupy.noises.narrowbands#
Demos#
Functions#
Draw narrowband noise texture |
- narrowband(visual_size=None, ppd=None, shape=None, center_frequency=None, bandwidth=None, intensity_range=(0, 1), pseudo_noise=False)[source]#
Draw narrowband noise texture
- 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
center_frequency (float) – noise center frequency in cpd
bandwidth (float) – bandwidth of the noise in octaves
intensity_range (Sequence[Number, Number]) – minimum and maximum intensity value; default: (0, 1)
pseudo_noise (bool) – if True, generate pseudo-random noise with ideal power spectrum.
- Returns:
dict with the stimulus (key: “img”), and additional keys containing stimulus parameters
- Return type: