Bandpass filters improve contrast by allowing wavelengths within a certain range to be transmitted while blocking those outside of the pass band.
These optical filters are known as edge filters; they correspond to high and low passes in electronics.