Search code examples
wolfram-mathematicamasknoise

Create a "visual noise matrix" in Mathematica


In order to avoid "retinal persistence" after the presentation of a stimuli, I need to create a visual noise mask.

enter image description here

This for a screen that has a dimension, in pixel of : 1280 * 960

I believe I could randomly (uniform) assign gray shade to pixels but my attempts yet failed.

Thank you for your attention.


Solution

  • Did you try looking in the help docs? One of the first examples for Image should have done it.

    Image@RandomReal[1, {960, 1280}]
    

    You can specify a different range of values:

    Image@RandomReal[{0.4, 1}, {400, 600}]
    

    Mathematica graphics