The image looks interesting right? So how did I do it? Pretty easy! Just use three light sources – red, green and blue. Wrong! This is done using a slightly more sophisticated procedure. I took three images with different lighting conditions. Then I wrote a MATLAB script to extract the red channel from the first image, green channel from the second image and blue channel from the third image. Combine these three and you get wonderful effects.
The first set of photos here are taken with a table lamp which does not give a focused beam. Switch on the light, take picture, change light position and so on.
The second set of pictures are taken using the same table lamp but with a convex lens in front of it. So I get a somewhat focused beam and clearly it has a more impressive effect.
The MATLAB code for this is available on GitHub. I feel comfortable using the GUI builder in MATLAB for dialog boxes. For these, I have uploaded the ‘.m’ files on GitHub but I am yet to find a way to upload the ‘.fig’ files. Apologies for that.