1. A color filter array, the array comprising: a plurality of primary filters and a plurality of secondary filters, wherein each filter has a particular spectral response and each filter is formed on a corresponding pixel of a plurality of pixels; wherein each of the plurality of primary filters and the plurality of secondary filters enhances an attribute of image quality and wherein the information obtained using the plurality of primary filters and the plurality of secondary filters is used to balance spatial resolution and the image quality for generating an image of a plurality of image types.