We propose a method to synthetically create or restore typical color filter array (CFA) pattern in digital images.
This can be useful, inter alia, to conceal traces of manipulation from forensic techniques that analyze the CFA
structure of images. For continuous signals, our solution maintains optimal image quality, using a quadratic
cost function; and it can be computed efficiently. Our general approach allows to derive even more efficient
approximate solutions that achieve linear complexity in the number of pixels. The effectiveness of the CFA
synthesis as tamper-hiding technique and its superior image quality is backed with experimental evidence on
large image sets and against state-of-the-art forensic techniques. This exposition is confined to the most relevant
'Bayer'-grid, but the method can be generalized to other layouts as well.