The typical bayer filter lays over the imaging sensor to allow the camera to determine the color of each pixel.  The camera then "debayers" the image in its image processor.