The authors develop several versions of the diffusion equation to demosaic color filter arrays of any kind. In particular, they compare isotropic versus anisotropic and linear versus non-linear formulations. Using these algorithms, they investigate the effect of mosaics on the resulting demosaiced images. They perform cross analysis on images, mosaics, and algorithms. They find that random mosaics do not perform the best with their algorithms, but rather pseudo-random mosaics give the best results. The Bayer mosaic also shows equivalent results to good pseudo-random mosaics in terms of peak signal-to-noise ratio but causes visual aliasing artifacts. The linear anisotropic diffusion method performs the best of the diffusion versions, at the level of state-of-the-art algorithms.
Jean-Baptiste Thomas, Ivar Farup, "Demosaicing of Periodic and Random Color Filter Arrays by Linear Anisotropic Diffusion" in Journal of Imaging Science and Technology, 2018, pp 050401-1 - 050401-8, https://doi.org/10.2352/J.ImagingSci.Technol.2018.62.5.050401