I have 26,674 files containing one type of image (label them A1,A2,A3... A26674) in directory A which pair with 26,674 files containing corresponding images of another type (label them B1, B2, B3... B26674) in another directory B. I want to average (or apply some other binary operation on) A1 and B1 and output to a third file C1 in directory C. I want to do the same for A2 and B2, A3 and C3 etc up to A26674 and B26674. I have more or less got to grips with Image Containers and Pixel Math for single inputs, thanks to tutorials (um.... I note no proper program documentation), but I don't see how to even begin to tackle this job. I guess it should be possible to write a batch processing script, but I can't find any reference on how to do this. (I exaggerate with the number 26,674, but I do actually have quite a lot, many more than I would like to process manually).
Any help would be appreciated.