High-resolution sensors capture application-defined spectral bands in real time