1. A method for reconstructing a color image from a sensor comprising a plurality of pixels arranged in a matrix of rows and columns, the sensor being provided with a color filter array such that each pixel corresponds to one of three basic colors, the three basic colors being provided on the sensor in a predetermined pattern; wherein the sensor outputs a detected value for each of the plurality of pixels; the method comprising the steps: for each of the plurality of pixels: accepting a detected value obtained for the corresponding one of the three basic colors and, for each of the respective two other basic colors, calculating a vertical interpolation value and a horizontal interpolation value and selecting either the vertical interpolation value or the horizontal interpolation value; outputting the accepted detected value and the selected interpolation values; wherein the vertical interpolation value and the horizontal interpolation value are calculated based on the detected values for pixels in a 5×5 pixel environment around the respective pixel.