Demosaicing using linear interpolation.
green_kernel = (1 / 4) * [ 0 1 0 ; 1 4 1 ; 0 1 0 ]; red/blue_kernel = (1 / 4) * [ 1 2 1 ; 2 4 2 ; 1 2 1 ];