Implementation of the algorithm presented in:

X. Wu and N. Zhang, ¡°Primary-consistent soft-decision color demosaicking
for digital cameras,¡± IEEE Trans. Image Process., vol. 13, no. 9, pp.
1263¨C1274, 2004.


TO TEST THE ALGORITHM RUN TEST.BAT.


Input is the origin image.
This program mosaic the orgin image by Bayer pattern, and then demosaic it by PSCD algorithm.
Output are demosaiced image and PSNR.


Notations
1. only 8bit color depth image. 