1. A video camera comprising an image sensor, electronic memory, and at least one processor, said camera being adapted to capture a sequence of input images from said sensor and to apply a spatially varying tonemapping operator to said input images, resulting in a sequence of tonemapped images, said spatially varying tonemapping operator being characterized by operating differently on pixels in different regions of said input images, where the difference in the operation of said operator for different pixels within the same input image depends at least for some pixels at least in part on the value of at least one pixel with a distance of at least 24 pixels from the pixel on which said tonemapping operator is operating, and said spatially varying tonemapping operator being further characterized by generating, during the processing of said input images, at least one intermediate image stored in said electronic memory, the values of the pixels of said intermediate image depending at least in part on the values of the pixels in the input image currently being processed, and referencing said intermediate image as an input for generating the output image currently being generated.