Thursday, 16 July 2009

A Little Less Random

And because I was bored... Using a random walk with weighted probabilities it can be used to generate an image in an "artistic" way; separate random walks were used for red, green and blue channels, along with white to enhance contrast and reduce colour change side effects. Watch the video here.



Using random walks in this way has some interesting side effects; a "momentum" effect has to be included to prevent the walks getting stuck in local minima. Without the momentum effect the random walk effectively acts as a low frequency Fourier filter... To get the above effect a momentum effect of 0.4 (a 0.4 chance of just continuing in the same direction) was used.

Software used:
Image creation: ImageJ
Video transcoding: VLC media player

A Little Random

So I'm feeling a little random today, so a little random walk of fun!
This was made using ImageJ's powerful macro abilities; see the image's Wikipedia page for the macro used.

Software used:
Everything: ImageJ

Sunday, 12 July 2009

Laser Diffraction

My most important point: lasers are awesome! There is a surprising amount of DIY geeky physics that you can do with a laser pointer and some bodged together diffraction slits and holes.Using two razor blades held a few tenths of a millimetre apart and a red and green laser pointer you can get some pretty good diffraction patterns.
It even behaves as expected! The increase in wavelength gives a corresponding increase in fringe spacing.

Laser diffraction patterns are a perfect test ground for fourier transform analysis, the fourier transform of the diffraction pattern gives the shape of the diffraction slit used.
This is the aperture I hacked together from a piece of 1mm aluminium and a drawing pin. The ruler markings are 1mm apart.
The diffraction pattern encodes the information about the aperture shape in the positioning of the fringes. The roughly circular diffraction pattern shows that the aperture is approximately circular.

Calculating a 2D fourier transform of the diffraction pattern gives the above image, an accurate reconstruction of the shape of an aperture only a few tenths of a millimetre across.

Software used:
Fourier transforms: ImageJ
Image management: Paint.net

Wednesday, 8 July 2009

Paper Autofluorescence

Microscopes are fun... Small things are cool! This is paper in all its fibrous glory; illuminated in ultraviolet paper autofluoresces at blue wavelengths and looks amazing! This was created from a 3x3 array of images, see the links below for higher resolutions:
6400x4800 at Wikipedia
Single screen wallpapers at Deviantart
Dual screen wallpapers at Deviantart

Software used:
The GIMP

Monday, 6 July 2009

Transparent Coke

Several people have had a hard time believing that coke is transparent in infrared, here's the proof that I am right! (You know what it's like; it was a hot day, I had a cold glass of coke with ice and happen to have an infrared webcam...)

I should have made a video of this, you get really nice refractive distortions (like heat haze) around the ice cubes as they melt...

Software used:
Webcam still image capture: Amcap (I can't find the official website!)

Tuesday, 30 June 2009

Infrared Sky Timelapse

And now for the timelapse, this is one I captured yesterday at one frame per five seconds, over 10000 images! This really shows how nicely infrared light cuts through the haze on a humid day and increases the contrast between the sky and clouds. Check it out here.

Software used:
Webcam capture: AbelCam
Automated image sequence renaming: ImageJ
Video creation: VirtualDub
Video transcoding: VLC media player

Sunday, 28 June 2009

IR Webcams and Night Vision

One thing most people don't realise about CCDs (the light sensors in the vast majority of digital cameras) is that they are very sensitive to infrared light. Sadly this is only near infrared, 800-1000nm wavelength, not thermal infrared, but is still great fun!

Modification of a webcam to see at these wavelengths is generally very simple, you simply have to take out the filter which cuts out the infra red light...
Then replace it with a filter which only lets infrared light through, household examples of this are exposed colour film negatives, a floppy disk platter, magnetic tape from a cassette and coke...
You can see the IR filter in the centre, it's the greenish glass, and my replacement filter cut from a floppy disk to the right.

Once converted the webcam will act like a black and white camera (the filters used to give individual pixels different colour sensitivities are transparent to infrared). The sky appears dark, plants a brilliant white. Fluorescent lights produce no infrared light, but the glow from your oven lights up the whole kitchen! Infrared is particularly suited to cloud and landscape photos as it is less affected by haze.
At some point I'll get round to posting a timelapse of the sky in infrared, it looks amazing!