teaching machines

Gaussian Pox Submission

February 10, 2015 by . Filed under cs455, postmortems, spring 2015.



There were a few obstacles that I had to overcome to get this lab to work.  The first was to actually get the PPM file to write.  I had the wrong header to the file so it would just print out black stripes.  Once i got the file to work I had to implement the Gaussian bumps energy equation.  I randomly created five gaussian bumps over the image with a random variance from 0 to 255.  Once i had these five bumps i could loop through the pixels and find out what the energy was on the pixel from these bumps.  My last problem was if i had a large width and smaller height(512×256) i would get a picture that would be duplicate side by side so to stop this from happening i had to just had the height and width be the same(500×500).

Gaussian   GaussianPox