Digital images are affected by characteristic artifacts that may impact significantly on template matching. We will consider two of them: demosaicing and interlacing.