Batch image manipulation

I would like to perform a series of applications on all the images in a folder. I can load all the images and display them, but I cannot figure out how to perform further operations like modify the color bar, take line integrations at a specific location and plot all the line profiles in one graph.
Thanks for your help.

If you load the images into IGOR you have a number of 2D or 3D waves in a data folder. When dealing with multiple images it is convenient to name them algorithmically, e.g., wave1, wave2, ... waveN. At this point you can write functions that will process all the images. For example, if you know that you have 10 images and you want to find the average value of the pixels in the rectangular region between rows 10 and 20 and columns 30,40:

Function process10()

Variable i
String name

Make/o/N=10 myResults=nan

for(i=0;i<10;i+=1)
name="wave"+num2str(i)
Wave w=$name
if(WaveExists(w)==0)
break
endif
ImageStats/M=1 /G={10,20,30,40} w
myResults[i]=V_avg
endfor
End

I hope this helps. Feel free to contact support if you have difficulty in implementing specific tasks.

A.G.
WaveMetrics, Inc.