1. A method of adjusting a global dynamic range of an image, the method comprising: based on one or more sizes of (i) a plurality of contiguous bright regions of the image and (ii) a plurality of contiguous dark regions of the image, selecting a window size of a low-pass filter, wherein the window size is selected such that the window size is larger than at least a certain percentage of (i) the plurality of contiguous bright regions of the image or (ii) the plurality of contiguous dark regions of the image; decomposing the image into (i) a low spatial frequency component and (ii) a high spatial frequency component, the decomposing based at least on the window size of the low-pass filter; adjusting a global dynamic range of the low spatial frequency component to produce an adjusted low spatial frequency component; and reconstructing the image with (i) the adjusted low spatial frequency component and (ii) the high spatial frequency component to thereby produce a processed image.