[Insight-users] gaussian noise

liu jianfei flair.liu at gmail.com
Mon Jan 23 12:15:15 EST 2006


Hi, everyone

    I used the following code to generate the gaussian noise:

    int i;
    float x = 0;
    for (i=0; i<100; i++)
       x = x + (float)rand()/(float)RAND_MAX;

    x = x - 50.0f;
    x = x * sqrt(40*12.0/100);
    return x;

   its mean value is 0 and deviation is 40. However, i found that the
result isn't similar as the picture of aylward's paper. Can someone
recommend me the gaussian noise generation method Or how to use ITK
class to generate it? Thanks!


--
Sincerly
Jianfei Liu


More information about the Insight-users mailing list