abstract |
A digital camera is provided comprising a Bayer color filter array arranged to capture an input image as a non-linear Bayer image comprising RGB pixels arranged in Bayer format, and a processor arranged to linearize and planarize the input image and to map each color of the linearized, planarized input image from an input space to an output space. The coordinates of the input space are mapped by the processor to the coordinates of the output space by dividing the output space coordinates by the number of pixels in the output space per input space sample and adding a vector (k 1 , k 2 ) where k 1 and k 2 are equal to either 0 or minus 0.5, depending on the color and the relative rotational orientation of the linearized, planarized input image in the input space. |