Introduction - If you have any usage issues, please Google them yourself
Write some code, including image preprocessing, and binary classical algorithm, the improved algorithm and some of their own code. Own algorithm obtained good results due to have been published.
rgb2bayer: Conversion to bayer format
border: processing the image edge pixels
method1-4: Different demosaic algorithms
cpsnr: PSNR formula to achieve