stimupy.components.gaussians#
Demos#
Functions#
Create a Gaussian (envelop) |
- gaussian(visual_size=None, ppd=None, shape=None, sigma=None, rotation=0.0, intensity_max=1.0, origin='mean')[source]#
Create a Gaussian (envelop)
- 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
sigma (float or (float, float)) – Sigma auf Gaussian in degree visual angle (y, x)
rotation (float, optional) – rotation (in degrees), counterclockwise, by default 0.0
intensity_max (float) – Maximal intensity value of Gaussian
origin ("corner", "mean" or "center") – if “corner”: set origin to upper left corner if “mean”: set origin to hypothetical image center (default) if “center”: set origin to real center (closest existing value to mean)
- Returns:
dict with the stimulus (key: “img”) ellipse-like mask with sigma radius and integer index (key: “gaussian_mask”), and additional keys containing stimulus parameters
- Return type: