teaching machines

lavaniaj – Gaussian Pox

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

Creating the Image class and its methods went smoothly after I overcame my directional impairment. I wasted quite a bit of time trying to figure out why my energies were not calculating correctly in my main method. Instead of doing variable1 = pow(variable2, variable3), I was simply doing variable1 = (variable2, variable3). I was accidentally using the comma operator to evaluate the expression. This evaluated variable2 then evaluated variable 3 and returned it. In the final product, I decided to randomly pick which RGB value a normalized energy would get assigned to. The results are bumps that look a bit like TV static.

 

RandRGB

 

RandRG