


Bilinear demosaic algorithm
rgb = Bilinear( bayer, cfaPattern )
Demosaic'ing algorithms estimate missing color information by
interpolation of the known color information across different color
planes.
This routine implements a bilinear algorithm.
The image is mirrored so that the output image is same size as input
image. In the previous version, the output image was smaller
bayer: The Bayer pattern image
cfaPattern:
Copyright ImagEval Consultants, LLC, 2005.