In optical filter systems and optical transmission systems, an optical filter compresses data into and/or derives data from a light signal. The filter way weight an incident light signal by wavelength over a predetermined wavelength range according to a predetermined function so that the filter performs the dot product of the light signal and the function.