|
|
This is a test of random color generation (right side of attached image)
using normal distribution based on an image (left side of attached image).
From POV-Ray help:
Rand_Normal(Mu, Sigma, Stream). Normal distribution.
Parameters:
Mu = Mean.
Sigma = Standard deviation.
Stream = Random number stream.
The Mean and Standard deviation for each color (red, green, blue) were
obtained from the Photoshop Histogram window and divided by 255. If you
don't have Photoshop, I think Gimp, which is free, has histograms too, but
I'm not sure.
#include "rand.inc"
#declare R1 = seed(1);
pigment {rgb vnormalize (<Rand_Normal(196.88/255,26.66/255,R1),
Rand_Normal(157.06/255,23.34/255,R1),
Rand_Normal(134.28/255,35.94/255,R1)> }
Post a reply to this message
Attachments:
Download 'thomastest.jpg' (142 KB)
Preview of image 'thomastest.jpg'
|
|