Home | | News | | Documentation | | Tutorial | | Screen Cast | | Download | |



Drawing the patch

In the self.do function, we first begin by restating the width, height, and standard deviation. This could have just been passed or made global. However, we add the variable scale which will determine the scaling of the gabor patch. To save processing time it is recommended setting the width and height small, and to increase the scale factor.



In a simple while loop, everytime you press 'n' a new, randomized gabor patch will be created. freq refer to the frequency of the sine waves and angle refers to the rotation on the patch. We make a call to draw_gabor and pass it the freq, angle and scale values.



draw_gabor uses the values previously determined by setup_gabor in order to calculate pixel alphas.






Previous || 1 2 3 4 5 6 || Next


Our work is supported by grants from


Copyright 2008-2013 - Todd Gureckis - New York University