I have an all-sky camera and it captures trees and parts of the horizon (buildings, ...). During the course of a night, cars, street lights, ambient light, whatever, change the light reflection off the trees.
I take over 2000 30-sec exposures every night.
I use the AdaptiveStretch function on each image (using ImageContainer) but whenever the light is different on the trees or background, the entire image is stretched differently than the previous image. So when I make a movie the next morning to find the asteroids and other interesting stuff, the sky can change a lot from one frame to another.
So I thought of making a mask to eliminate the background. Using PixelMath and a similar expression as this: iif($T<0.04,0,1) I can generate over 2000 masks and since the trees move a bit during the night, etc, I am catching all the conditions.
Now I want to *add* all these masks to generate a comprehensive mask, a master mask if you will.
ImageIntegration does not like my images: "Zero or insignificant signal detected: Empty image?" and stops.
How can I use PixelMath to add all the pictures (and scale them) ? I am not seeing how to reference all the pics.
It must be obvious but not for me this morning.
Thanks!