摘要 |
A method (S 100 ) for dynamic range compression of output channel data from an image sensor ( 2 ) comprising an array of sensor cells. The method (S 100 ) comprises selecting a window (S 130 ) in the channel data, the window having a reference pixel value and a plurality of nearby pixel values. The reference pixel value originates from a reference cell that is one of the sensor cells and the nearby pixel values originate from the sensor cells that are in close proximity to the reference cell. There is a step of multiplying (S 140 ) the pixel values, in the window, by a respective weight value to provide weighted pixel values and then adding (S 150 ) the weighted pixel values to provide a convolution value. Thereafter, there is a step of providing (S 160 ) a dynamic range compression value for the window from a selected one of the pixel values and said convolution value and then an assigning step (S 170 ) assigns the dynamic range compression value to a selected pixel location comprising part of an image. |