I want to calculate the variance over 10 Images. For that I need two multiply two GRAYSACLE Images mathematical and pixel wise. So for example you have the two pixel with the same coordinates and their values 10 and 12, you get the new pixel value 120. If the result is higher than 255 (maximum of the 8 Bit GRAYSCALE Format), the pixel value should be 255. Unluckily the Image.mul() function does not calculate that. Is there an efficient way to solve that Problem? Without two for-loops with Image.get_pixel / Image.set_pixel.
Thanks in Advance