stimupy.papers.murray2020#

Stimuli from Murray (2020) https://doi.org/10/gh57gf

This module reproduces most of the stimuli used by Murray (2020) as they were provided to the model described in that paper but normalized between 0 and 1. The stimuli are show in Fig 1 of the paper. NOTE that the Haze illusion (Fig 1m) is not provided.

Each stimulus is provided by a separate function, a full list can be found as stimupy.papers.murray2020.__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/murray2020.py

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

list of all stimulus-functions

References

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

Functions#

argyle

Argyle illusion, Murray (2020) Fig 1a

argyle_control

Argyle control figure, Murray (2020) Fig 1c

argyle_long

Long-range Argyle illusion, Murray (2020) Fig 1b

snake

Snake illusion, Murray (2020) Fig 1i

snake_control

Snake control figure, Murray (2020) Fig 1j

koffka_adelson

Koffka-Adelson figure, Murray (2020) Fig 1e

koffka_broken

Koffka ring, broken, Murray (2020) Fig 1d

koffka_connected

Koffka ring, connected, Murray (2020) Fig 1f

checkassim

Checkerboard assimilation, Murray (2020) Fig 1h

simcon

Classic simultaneous contrast figure, Murray (2020) Fig 1k

simcon_articulated

Articulated simultaneous contrast figure, Murray (2020) Fig 1l

white

White's illusion, Murray (2020) Fig 1A

argyle(ppd=2.0)[source]#

Argyle illusion, Murray (2020) Fig 1a

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

argyle_control(ppd=2.0)[source]#

Argyle control figure, Murray (2020) Fig 1c

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

argyle_long(ppd=2.0)[source]#

Long-range Argyle illusion, Murray (2020) Fig 1b

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

snake(ppd=2.0)[source]#

Snake illusion, Murray (2020) Fig 1i

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

snake_control(ppd=2.0)[source]#

Snake control figure, Murray (2020) Fig 1j

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

koffka_adelson(ppd=2.0)[source]#

Koffka-Adelson figure, Murray (2020) Fig 1e

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

koffka_broken(ppd=2.0)[source]#

Koffka ring, broken, Murray (2020) Fig 1d

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

koffka_connected(ppd=2.0)[source]#

Koffka ring, connected, Murray (2020) Fig 1f

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

checkassim(ppd=2.0, pad=True)[source]#

Checkerboard assimilation, Murray (2020) Fig 1h

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

simcon(ppd=2.0)[source]#

Classic simultaneous contrast figure, Murray (2020) Fig 1k

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

simcon_articulated(ppd=2.0)[source]#

Articulated simultaneous contrast figure, Murray (2020) Fig 1l

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf

white(ppd=2.0)[source]#

White’s illusion, Murray (2020) Fig 1A

Parameters:

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

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

Murray, R. F. (2020).

A model of lightness perception guided by probabilistic assumptions about lighting and reflectance. Journal of Vision, 20(7), 28. https://doi.org/10/gh57gf