Optical filters operate based on principles like absorption, reflection, and interference. In nanoscale optical filters, the material properties and structural design are engineered to manipulate light effectively. For example, plasmonic nanostructures can enhance specific wavelengths through resonance effects, while photonic crystals can create bandgaps that block certain wavelengths.