A Fabry-Perot cavity filter includes a first mirror and a second mirror. A
gap between the first and the second mirror monotonically varies as a
function of width of the filter. This filter may be used with
photodetector and a channel selection filter in an optical device, such
as a spectrum analyzer. The channel selection filter may be a metal
nanooptic filter array which includes plurality of subwavelength
apertures in a metal film or between metal islands.