Are there more efficient ways (e.g. using functions already implemented at a faster/lower level) to do this other than the obvious way of creating a new image, going through each frame of the movie using a for loop, and with each iteration going through each pixel in the frame, updating the image at the corresponding pixel value if it is larger than current value.
I can indeed access individual pixels in a frame using cv.Get2D, so that's fine and dandy. I'm just wondering if I can take advantage of a faster or more hardware optimized way of doing this, as I will be doing this on many many gigabytes of greyscale video.