An imaging system comprising: a detector comprising an array of light sensitive elements arranged in rows and columns , wherein each light sensitive element is configured to generate a signal dependent on an intensity of light incident onto the light sensitive element ; a plurality of wavelength separating units wherein each wavelength separating unit is configured to spatially separate incident light within a wavelength range into a number of wavelength bands distributed along a line , wherein the line is a straight line, and wherein each wavelength band along the line is associated with a mutually unique light sensitive element ; wherein each of the rows is associated with more than one wavelength separating unit of the plurality of wavelength separating units , and each of the columns is associated with more than one wavelength separating unit of the plurality of wavelength separating units ; a processing unit configured to define a number of mutually unique clusters of light sensitive elements for summing signals from the light sensitive elements within the respective clusters , wherein each cluster respectively forms a continuous area of the light sensitive elements , wherein each cluster comprises light sensitive elements associated with more than one wavelength separating unit of the plurality of wavelength separating units , and wherein each cluster comprises light sensitive elements associated with wavelength bands such that the summed signals represent a combination of the spectral information of the wavelength bands, and wherein the processing unit is configured to perform hardware binning for summing the signals from the light sensitive elements within each of the mutually unique clusters respectively. a detector comprising an array of light sensitive elements arranged in rows and columns , wherein each light sensitive element is configured to generate a signal dependent on an intensity of light incident onto the light sensitive element ; a plurality of wavelength separating units wherein each wavelength separating unit is configured to spatially separate incident light within a wavelength range into a number of wavelength bands distributed along a line , wherein the line is a straight line, and wherein each wavelength band along the line is associated with a mutually unique light sensitive element ; wherein each of the rows is associated with more than one wavelength separating unit of the plurality of wavelength separating units , and each of the columns is associated with more than one wavelength separating unit of the plurality of wavelength separating units ; a processing unit configured to define a number of mutually unique clusters of light sensitive elements for summing signals from the light sensitive elements within the respective clusters , wherein each cluster respectively forms a continuous area of the light sensitive elements , wherein each cluster comprises light sensitive elements associated with more than one wavelength separating unit of the plurality of wavelength separating units , and wherein each cluster comprises light sensitive elements associated with wavelength bands such that the summed signals represent a combination of the spectral information of the wavelength bands, and wherein the processing unit is configured to perform hardware binning for summing the signals from the light sensitive elements within each of the mutually unique clusters respectively. <EOS>