


Demosaicing Using Alternating Projections
imgRGB = Pocs(bayer,bPattern,iterN)
bayer_in is a Bayer pattern (must be 'rggb'). This routine applies the
POCS algorithm (Projection onto convex sets).
For details, please refer to the paper:
Color plane interpolation using alternating projections
Gunturk, B.K.; Altunbasak, Y.; Mersereau, R.M.
Image Processing, IEEE Transactions on , Volume: 11 Issue: 9 , Sept 2002
Page(s): 997 -1013
Source code derived from the distribution at
Bahadir K. Gunturk
School of Electrical and Computer Engineering
Georgia Institute of Technology
Email: bahadir@ece.gatech.edu
URL : http://users.ece.gatech.edu/bahadir
ISET implementation by Stephanie Kwan and Brian Wandell