This script acquires a digital camera image from a Logitech webcam and processes it. I have been using it for online monitoring of an atomic hydrogen beam on a beam-dump quartz plate. To get repeatable images, it is helpful to set the webcam's gain and exposure.
Tuesday, April 29, 2014
Wednesday, April 16, 2014
Oscillator animation
An animated simple harmonic oscillator, integrated using the Verlet algorithm. You can see that the Verlet algorithm conserves energy, but only in an average sense.
Thursday, April 3, 2014
Bringing fourier transforms to life
This script animates the reconstruction of a random ellipse from its fourier coefficients. It is a lot of fun to watch the reconstruction, especially for large aspect ratio ellipses.
Subscribe to:
Posts (Atom)