Compressive spectral imaging with resonators devices