During some recent presentations, I have used a small matlab program giving me a live Fourier transform of the laptop camera input. It can be used in combination with some printed “structures” to show what we would see on a SAXS or WAXS detector.
The idea is not mine, I heard that it was used by dr. Henrik Lemke for his Ph.D. defense to show the effects of lattice strain on the diffraction pattern.
It turns out to be quite popular with the audience so far, so I will post the code for Matlab running on a macbook Pro here. Feel fee to use the code. I will also make a short movie showing one example of how to use it. I am sure you can think of many other useful purposes for it!
The package is here: FT_cam_package
Since it is so specific in its application, there is no documentation. Also, run “FTcamdemo” and the rest should be quite self-explanatory in the GUI that comes up. This package uses (and comes with) camera image capture code (Java) by Kalle Kempe and Ikkjin Ahn.