Image overlaying

Hi guys- firstly im not the worlds greatest programmer

Basically i need to write a program which can take in a variable number of image files (of the same size) and overlay them.

The images will be european maps, with coloured overlays corresponding to temperature. Eg i shall have 12 maps of europe with colour coded temperature overlays. I need to overlay these 12 images in order to produce an 'average-image' which can show the data for all 12 on just one. I would prefer to keep the final image with just one colour overlay. eg Dark blue for hot areas and light blue for colder areas.

Can anyone help please? It really would be appreciated........

ps i wasnt sure whether to get rid of the maps initially and then add it in at the end- because the map would be exactly the same- just keeping the 'white' areas as transparent?

i was thinking of doing a pixel-by-pixel approach, ie looking at the original map input. if the pixel colour isnt red (assume input images are either map or red colour) then make pixel transparent. then give a point score to every pixel which does have red in each 12 input images. finally tally up the points and colour accordingly.

finally add the map back to the output file ?

Message was edited by:

futureaussiecto

[1309 byte] By [futureaussiectoa] at [2007-11-27 10:56:17]
# 1

Try reading up on alpha channels - they let you set transparency within an image.

_PeterB_a at 2007-7-29 12:02:03 > top of Java-index,Security,Cryptography...
# 2

hi

yeh i know about that bit, its reading pixel by pixel im having problems with

futureaussiectoa at 2007-7-29 12:02:03 > top of Java-index,Security,Cryptography...