Adding noise to screen
--
Rafael E. Fernández
Computer Science major
University of Illinois at Urbana-Champaign
If you're using VisionEgg 1.1, use Numpy to create a random array, otherwise, use numeric. You can create a Texture object directly from this data, or a PIL image (which can then be used to initialize a Texture object). -Eamon On Jul 10, 2008, at 10:59 PM, Rafael Fernandez wrote: > Hello, > > I am trying to add noise over a display. I am currently creating > TextureStimulus objects randomly all over the screen. However, this > is VERY slow. Does anyone have any idea on how to achieve this? > > Thank you, > Rafael Fernández > ====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
Hi,
How does the display need to look? IF it's a matter of putting noise over part of the screen (like over text displayed in the center), I might be able to dig up an old script I tried out that worked well. Basically, you get 5-10 tall narrow images (.jpg, .bmp) of noise/snow, then place them side by side over the text with a low opacity AND randomize the y value for the anchor(leaving x constant, so you don't have overlapping semi-opaque blocks of noise). Finally, to make things neat looking, you just "frame" the text with some stationary fully opaque rectangles laid over top of the moving noise images, (usually whatever the background color is).
In this set up, you could have different opacities for each "strip" of noise, or e.g. fix the x values to gaze if you're doing an eye tracking experiment.
If I remember right, this method CAN work for a whole screen, but you need to make compromises on how long the strips are (i.e. the variety of the noise), and things would probably go too slow to e.g. have mouse or eye-position -related movement of noise be convincing.
-Dave
Hello,I am trying to add noise over a display. I am currently creating TextureStimulus objects randomly all over the screen. However, this is VERY slow. Does anyone have any idea on how to achieve this?Thank you,Rafael Fernández
--
Rafael E. Fernández
Computer Science major
University of Illinois at Urbana-Champaign
I have no idea what kind of noise you want. (What domain, what distribution, and so on.) But, I suggest looking and the visual_jitter.py demo which displays luminance white noise updated very quickly. -Andrew Rafael Fernandez wrote: > Hello, > > I am trying to add noise over a display. I am currently creating > TextureStimulus objects randomly all over the screen. However, this is > VERY slow. Does anyone have any idea on how to achieve this? > > Thank you, > Rafael Fernández > > -- > Rafael E. Fernández > Computer Science major > University of Illinois at Urbana-Champaign ====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
RSS Feed2 | |
|---|---|
2 | |
1 | |
2 | |
2 | |
2 | |
1 | |
3 | |
3 | |
4 | |
1 | |
4 | |
1 | |
1 | |
2 | |
3 | |
2 | |
2 | |
6 | |
4 | |
4 | |
14 | |
5 | |
10 | |
28 | |
17 | |
13 | |
20 | |
10 | |
9 | |
3 | |
6 | |
6 | |
23 | |
7 | |
5 | |
15 | |
12 | |
18 | |
6 | |
4 | |
5 | |
3 | |
9 | |
1 | |
8 | |
7 | |
18 | |
22 | |
6 | |
16 | |
9 | |
21 | |
6 | |
24 | |
15 | |
11 | |
10 | |
30 | |
1 | |
4 | |
4 | |
13 | |
8 | |
4 |