Re: Random and Multithreading




"John" <NoSpam@xxxxxxxxxx> wrote
... I have to apply a graphic filter on a Bitmap ...

John,
I just noticed the above line in your OP. Are you
trying to do dithering to smooth out gradient steps?
If so, I believe that there are better ways to do this
than recomputing the random function each time.
Using a PRNG (pseudo-random number generator)
to do this is often an easy way to find correlations
in the generated random number sequence, which
is usually what you do *not* want when doing image
dithering.
Regards, JohnH


.



Relevant Pages

  • Re: OT - NGC 6334, NGC 6357
    ... When done properly, dithering reduces noise. ... Here's a way to get a really nice looking, smooth background without losing ... The first thing we will do is add a "Curves" adjustment layer to "turn on ... Make sure your top image layer is selected, ...
    (alt.sports.basketball.nba.la-lakers)
  • Re: Mirror driver questions
    ... If you want banding, maybe you need to raise the color depth of your primary ... gradient on my 8bpp surface. ... The problem is dithering, ... Do they all draw the gradient themselves instead of punting back ...
    (microsoft.public.development.device.drivers)