The yuv_demosaicing.rar contains the MATLAB code implementation of color demosaicing  directly in the YUV color space.  It performs YUVG demosaicing in the DCT space with YUV components. The code also tests the implementation by reconstructing the demosaiced  image in RGB space followed by a false color suppression in the UV space. The reconstruction  is according to YUBGSB algorithm. The code can be run from the file "YUVG_main.m".

 

Reference:

"Demosaicing of images obtained from single-chip imaging sensors in YUV color space", by J. Mukherjee, M. Lang and S.K. Mitra, Pattern Recognition Letters 26 (2005) 985–997.