wrapper for pixel -> spectral value