revealing a picture on screen pixel by pixel


Can anyone please help me with my psychology face recognition project? I am trying to find out if it is possible to reveal a picture on a website randomly pixel by pixel, and if so, how? Is there some easy-to-use software that will do it? I have been told one way is to link a random numbers generator to the pixels of a picture within a frame on screen. But I'm not sure how that can be done. Any ideas?

Comments

  • It should be possible with Macromedia Flash, if you want to reveal a picture pixel by pixel on a website. In general, in most programming languages, the easiest way to do it would go as follows (there are other methods, such as generating non-repeating random values, but these are beyond the scope of this post):

    1. Load a picture into buffer 'input'.
    2. Create extra buffers 'filled' and 'output', that are the same size as your picture. Output buffer should be empty or black or whatever color. Each value in buffer 'filled' should be false.
    3. Start generating random values with the programming language of choice random number generator from 0 to as large as your picture is in pixels minus the number of random numbers that you have already generated. The size of your picture is width*height, so you'll have to generate as many random pixels.
    4. For each generated random value, find the proper place for it. To find the proper place, you should travel the pixels that are not yet filled and count them. If you have counted as many pixels as your random value, then you need to fill it with appropriate value from 'input' buffer. The buffer 'filled' is to rememember, where the filled pixels are, set its value to true. Go and generate more random values.

    :
    : Can anyone please help me with my psychology face recognition project? I am trying to find out if it is possible to reveal a picture on a website randomly pixel by pixel, and if so, how? Is there some easy-to-use software that will do it? I have been told one way is to link a random numbers generator to the pixels of a picture within a frame on screen. But I'm not sure how that can be done. Any ideas?
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion