20
$\begingroup$

In many images of light emitting objects we see such rays. Why do they appear ? What is the math behind their number and direction?

enter image description here

$\endgroup$
4
  • $\begingroup$ +1. Perfectly valid and interesting question, I can't understand the downvote. $\endgroup$ Commented Sep 8, 2012 at 19:43
  • 1
    $\begingroup$ @EmilioPisanty: Yes, It's a good question. But, The downvote was due to the question's history... It was first posted with a link that requires a login ID $\endgroup$ Commented Sep 9, 2012 at 7:18
  • $\begingroup$ fair enough, then. $\endgroup$ Commented Sep 9, 2012 at 10:36
  • $\begingroup$ Related (but not duplicate): physics.stackexchange.com/q/9899/10851 $\endgroup$
    – user10851
    Commented Apr 4, 2013 at 21:43

3 Answers 3

18
$\begingroup$

Those are artifacts of having obstructions in the optics. Ideally, we think of the intensity being recorded as the (squared magnitude of the) Fourier transform of the wavefront passing through the aperture. That is, whenever a wavefront is brought into focus, it undergoes a Fourier transform (in the Fraunhofer limit).

This transform is affected by the aperture, which excludes any part of the wavefront outside a certain range. Indeed for a circular aperture, the Fourier transform of a uniform light source is the familiar Airy pattern. Convolving an ideal image (made with an infinite aperture) with the Airy function results in the familiar bloom seen in photographs of bright light sources.

Many camera apertures, however, use polygons for ease of manufacturing, and so bright sources are convolved with a more complicated function, which can result in your rays. You should take a look at this paper, which discusses simulating these effects and more, since the prevalence of film and photographs in the modern world makes these artifacts almost necessary to lend realism to an image, despite the fact that they are rarely seen with our own eyes. Figure 3 in particular shows a camera aperture, and Figure 5 shows the relation to the Fourier transform.

In summary: the number of spikes is the number of edges in the aperture (iris), and the orientation is just the orientation of the camera.

Other obstructions within the aperture can cause similar effects. For telescopes with a secondary mirror or other installment in the optical path (a very common design), the object and its support struts have their Fourier transforms affect the image. The thin struts in particular case noticeable artifacts, even in Hubble images, as can be seen in the wiki on diffraction spikes.

$\endgroup$
4
  • 2
    $\begingroup$ Actually, I see this effect with my own eyes a lot, when staring at a light bulb. What is the explanation then? My eyes are definitely not polygon. $\endgroup$
    – Siyuan Ren
    Commented Sep 9, 2012 at 5:42
  • $\begingroup$ @Karsus This is where I put forth a guess that you're seeing diffraction/internal reflection patterns caused by the discrete cellular nature of your lens. $\endgroup$
    – user10851
    Commented Sep 9, 2012 at 8:02
  • $\begingroup$ Thanks for the answer, Do you have any opinion about @Emitabsorb's answer below? $\endgroup$
    – user13107
    Commented Sep 9, 2012 at 13:44
  • $\begingroup$ @user13107 I have no doubt that scratches and such can cause an effect like this, but even in the absence of scratches or oil there can be spikes, as noted in Emitabsorb's blog. $\endgroup$
    – user10851
    Commented Sep 9, 2012 at 18:26
5
$\begingroup$

It isn't Lens Flare, this effect is simply a result of reflections due to the scratches or oil traces left in your camera. A series of parallel scratch lines will reflect light perpendicular to themselves. You can even change the direction of the ray!! You can do it by wiping your Cam's lens in a certain direction using your oily fingers. If you wipe it in one direction, the ray will be oriented perpendicular to it. If you still love your cam's lens so much, you may like to take a look at this post on my blog:

http://emitabsorb.wordpress.com/2012/03/05/childhood-question-finally-solved/

I've analyzed this effect and I demonstrated in the videos how I changed the direction of the rays. You can also easily see this effect at night with your bare eyes, because there are already many scratches on your eye lens.

You can try wiping your camera's lens with your fingers(the wiping should be in one direction only, otherwise no line will occurs) before taking a picture, then if the first two rays that existed before vanished and replaced by a new line then it definitely means that my explanation is correct. But if those two lines still exist, maybe it is due to the scratches on your camera's lens.

$\endgroup$
2
  • 1
    $\begingroup$ you can see similar effects using bare eyes even without squinting, and if you tilt your head, the rays will also rotate with it. You can only see this using bare eyes at night because usually this reflected light's intensity is much weaker than that of other sources of light. If you squint your eyes, different effect takes place, I think it is related to eye liquid's movement. $\endgroup$
    – Emitabsorb
    Commented Sep 9, 2012 at 7:14
  • $\begingroup$ Maybe they are talking about different stuffs, they are many other phenomena similar to this. But I think in most daily life cases, using ordinary camera, this is the right explanation. I have done some experiments to prove it using my ipod. $\endgroup$
    – Emitabsorb
    Commented Sep 9, 2012 at 8:57
2
$\begingroup$

Probably, there's no math. It's known as Lens flare. It happens when light reception takes place through lenses (both cameras and even your eyes) in the presence of a bright source which could be either inside or outside the frame. It is a condition that often occurs in photographs when light goes where it is not supposed to go. When light that is not contributing to the image at hand, enters the camera and hits the sensor or film, you get a flare in the photograph. These can wash out the color in the rest of the image, and show up as a polygonal object in the image. The number of rays and their direction depends on the angle of incidence. This link gives useful information regarding Lens flares.

Lens flares could be prevented using lens hoods or a lens having a good anti-reflective coating on it...

$\endgroup$
3
  • $\begingroup$ Thanks for the terminology. May be they have explained someplace else about reason behind the number of such rays. $\endgroup$
    – user13107
    Commented Sep 8, 2012 at 17:47
  • $\begingroup$ It's not clear to me from this image the reason behind the rays. Do they correspond to the 'mirror image' ? $\endgroup$
    – user13107
    Commented Sep 8, 2012 at 18:05
  • $\begingroup$ toothwalker link is dead... $\endgroup$
    – Cheng
    Commented Nov 10, 2023 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.