stimupy.papers.white1981#

Stimuli from White (1981) https://doi.org/10.1068/p100215

This module reproduces most of the stimuli used by White (1981) as they were described in that paper.

Each stimulus is provided by a separate function, a full list can be found as stimupy.papers.white1981.__all__

The output of each of these functions is a stimulus dictionary.

For a visual representation of all the stimuli and their mask, simply run this module as a script:

$ python stimuli/papers/white1981.py

__all__(list of str)#
that are exported by this module when executing
>>> from stimupy.papers.white1981 import *
Type:

list of all stimulus-functions

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

Functions#

square_white

A square on a white background from White (1981), Fig.

square_black

A square on a black background from White (1981), Fig.

grating_white_white

A white-gray grating on white background from White (1981), Fig.

grating_white_black

A white-gray grating on black background from White (1981), Fig.

grating_black_white

A black-gray grating on white background from White (1981), Fig.

grating_black_black

A black-gray grating on black background from White (1981), Fig.

grating_white_in

A white-gray grating on an in-phase grating from White (1981), Fig.

grating_black_in

A black-gray grating on an in-phase grating from White (1981), Fig.

grating_white_out

A white-gray grating on an out-of-phase grating from White (1981), Fig.

grating_black_out

A black-gray grating on an out-of-phase grating from White (1981), Fig.

grating_white_orthogonal

A white-gray grating on an orthogonal grating from White (1981), Fig.

grating_black_orthogonal

A black-gray grating on an orthogonal grating from White (1981), Fig.

square_white(ppd=50)[source]#

A square on a white background from White (1981), Fig. 2 Stimulus size: 4.0 x 4.0 deg (originally 4.3592 deg) Target size: 0.72 x 0.72 deg (originally 0.7696 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

square_black(ppd=50)[source]#

A square on a black background from White (1981), Fig. 2 Stimulus size: 4.0 x 4.0 deg (originally 4.3592 deg) Target size: 0.72 x 0.72 deg (originally 0.7696 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

grating_white_white(ppd=50)[source]#

A white-gray grating on white background from White (1981), Fig. 2 Stimulus size: 4.0 x 4.0 deg (originally 4.3592 deg) Target size: 0.72 x 0.72 deg (originally 0.7696 deg) Bar width: 0.08 deg (originally 0.0855 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

grating_white_black(ppd=50)[source]#

A white-gray grating on black background from White (1981), Fig. 2 Stimulus size: 4.0 x 4.0 deg (originally 4.3592 deg) Target size: 0.72 x 0.72 deg (originally 0.7696 deg) Bar width: 0.08 deg (originally 0.0855 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

grating_black_white(ppd=50)[source]#

A black-gray grating on white background from White (1981), Fig. 2 Stimulus size: 4.0 x 4.0 deg (originally 4.3592 deg) Target size: 0.72 x 0.72 deg (originally 0.7696 deg) Bar width: 0.08 deg (originally 0.0855 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

grating_black_black(ppd=50)[source]#

A black-gray grating on black background from White (1981), Fig. 2 Stimulus size: 4.0 x 4.0 deg (originally 4.3592 deg) Target size: 0.72 x 0.72 deg (originally 0.7696 deg) Bar width: 0.08 deg (originally 0.0855 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

grating_white_in(ppd=50)[source]#

A white-gray grating on an in-phase grating from White (1981), Fig. 3 Stimulus size: 4.08 x 4.08 deg (originally 4.3592 deg) Target size: 0.72 x 0.72 deg (originally 0.7696 deg) Bar width: 0.08 deg (originally 0.0855 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

grating_black_in(ppd=50)[source]#

A black-gray grating on an in-phase grating from White (1981), Fig. 3 Stimulus size: 4.08 x 4.08 deg (originally 4.3592 deg) Target size: 0.72 x 0.72 deg (originally 0.7696 deg) Bar width: 0.08 deg (originally 0.0855 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

grating_white_out(ppd=50)[source]#

A white-gray grating on an out-of-phase grating from White (1981), Fig. 3 Stimulus size: 4.0 x 4.0 deg (originally 4.3592 deg) Target size: 0.72 x 0.72 deg (originally 0.7696 deg) Bar width: 0.08 deg (originally 0.0855 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

grating_black_out(ppd=50)[source]#

A black-gray grating on an out-of-phase grating from White (1981), Fig. 3 Stimulus size: 4.0 x 4.0 deg (originally 4.3592 deg) Target size: 0.72 x 0.72 deg (originally 0.7696 deg) Bar width: 0.08 deg (originally 0.0855 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

grating_white_orthogonal(ppd=50)[source]#

A white-gray grating on an orthogonal grating from White (1981), Fig. 3 Stimulus size: 4.0 x 4.0 deg (originally 4.3592 deg) Target size: 0.72 x 1.36 deg (originally 0.6841 x 1.1117 deg) Bar width: 0.08 deg (originally 0.0855 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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

grating_black_orthogonal(ppd=50)[source]#

A black-gray grating on an orthogonal grating from White (1981), Fig. 3 Stimulus size: 4.0 x 4.0 deg (originally 4.3592 deg) Target size: 0.72 x 1.36 deg (originally 0.6841 x 1.1117 deg) Bar width: 0.08 deg (originally 0.0855 deg)

Parameters:

ppd (int) – Resolution of stimulus in pixels per degree.

Returns:

dict with the stimulus (key: “img”) and target mask (key: “target_mask”) and additional keys containing stimulus parameters

Return type:

dict of str

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