How to Equally Blend Multiple Images in GIMP

Warning! Some information on this page is older than 3 years now. I keep it for reference, but it probably doesn't reflect my current knowledge and beliefs.

Aug 2010

How to Equally Blend Multiple Images in GIMP

During my today's walk on Warsaw I took many different photos. Some of them were series of photos of a road from exactly same place, with a purpose of merging them together into a single photo. My idea was to just average the color of each pixel, so it should be like:

out = 1/4 * (img[0] + img[1] + img[2] + img[3])

But how to do this in GIMP? There is no such filter AFAIK. An obvious solution is to use blending - Mode and Opacity settings for layers - but it turns out to be not so simple. Each layer blends with a merged image from beneath it, so instead of average formula above we have to refer to a formula for blending (linear interpolation), which is:

out[i] = t[i] * img[i] + (1-t[i]) * out[i+1]

i is a layer index 0..(n-1), indexed from the topmost layer,
t[i] is Opacity parameter for layer i.

After expanding it for 4 layers, the formula becomes:

out =
t[0] * img0 + (1-t[0]) * (
  t[1] * img1 + (1-t[1]) * (
    t[2] * img2 + (1-t[2]) * (
      t[3] * img3 + (1-t[3]) * 0

Finally, after doing some math with pen and paper, I calculated that to equally blend (average) n images in GIMP, you should:

For example, I have 5 photos so I give them Opacity: 20, 25, 33, 50, 100. Here is the result: an image that could be called "Road of Ghosts" :)

By the way, I've found a website where panorama photos can be uploaded for free and interactively viewed using just Flash. Here is my profile: reg | Panogio.

Comments (1) | Tags: gallery graphics | Author: Adam Sawicki | Share


2017-02-22 09:43:42
of the old story. However, when a long time did not remember I was shocked to hear the passage of time to do so is ruthless, hurried between, chaotic fleeting, for the face, scattered old year.A woman with a temperature of not only move others, also touched yourself, just, and aerial life, everyone has his own Xibei cold, you were always a weak woman, also has its own anguish worries, you also need understand the need to release, we needed the space. So tired, I allow you to withdraw the dispute, but must be able to protect themselves, but also allows you to temporarily go into hiding, but it must be spring, I think, the heart if relieved to well as ever, and only put down the burden, all the way Ting Feng faint, will go easier.You only live once, you can not live too tired, should be wonderful, live smart, live happy! Friendship is the wine, the more the more concentrated wine, love is a flower, the more beautiful the more care. Ye friendship, love worth mentioning, when own, cherish after losing, be yourself, but indulging in grief, but in the memories of the past, a person must be a new beginning, do not let the sadness mill happy factor, do not let the past you plug in sorrow hall. Do not say you love who you are, life is long, can not predict tomorrow, good terms, everyone has their own helplessness. Not live to miss yesterday, but to wait for hope.Girl, your tears are precious, so do not just cry, your training is very important, so it should not foul language, your youth is very short, so it should not decadent. Girl, you learn to be alone in the deserted corner can also be silent joy, girl, you learn to be strong, in the season AnShang cross-flow, also can Angtou sunny, girl, you learn to smile, time to give yourself a smiley face , not only can regulate mood, but also a way to treat yourself. Girl, although many times no one can understand your grief, but still believe that a warm, beautiful, trust in the presence of these words, even if you remember, the only way to learn distressed themselves in order to make a good wife, good to live.Eyes were tears become increasingly clear, heart pain due to become even more transparent, because life experiences become even more abundance. Cried, the pain had gone through, give yourself a sunny day, it should be understood, to a

Post comment

Nick *
Your name or nickname
Your contact information (optional, will not be shown)
Text *
Content of your comment
Calculate *
(* - required field)
STAT NO AD [Stat] [Admin] [STAT NO AD] [pub] [Mirror] Copyright © 2004-2017 Adam Sawicki
Copyright © 2004-2017 Adam Sawicki