Control of the integration time {with different integration times within the sensor depending on the spectral component}