How many bits do the original images have? I assume they are 10 or 12 bit images. What I would do is first add them together until they get close to 16 bits. For 10 bit images, you could add 32 images without overflow. For 12 bit, you could add 8 images before overflow.
Once the images are close to overflow, you need to reduce the number of significant digits. You can either divide by a power of two to move the bits over, or divide by the number of images remaining. You can then finish adding the images.
Another method might be to use image to array, use bit shifting to do a fast power of two divide, then convert back to an image. I don't know if that would be faster or slower than the IMAQ divide.
This keeps everything in I16 format, which will
keep things manageable, fast and should provide plenty of bit resolution.
Bruce
Bruce Ammons
Ammons Engineering