Light reaching digital camera sensors (CCDs) is filtered by a colour filter array (CFA), or Bayer array, which allows each sensor element to measure the intensity of either red, green or blue light. The monochrome image captured by the CCD is converted into a full-colour image by interpolating the missing pair of RGB values at each sample position.

My slides on CFA interpolation detection include a more thorough introduction to the topic.