An imaging system for imaging an object, comprising - a time delay integration - TDI - sensor; - an optical system for illuminating the object and for guiding light (16; 18) of a first spectrum from the object onto the TDI sensor, the optical system having at least a first imaging mode for illuminating the object with a first light source of a third spectrum and a second imaging mode for illuminating the object with a second light source of a fourth spectrum, the fourth spectrum differing from the third spectrum; - a controller for synchronizing the TDI sensor and the optical system such that the TDI sensor shifts the charge from a cell rendered insensitive to a cell rendered sensitive when the optical system assumes the first imaging mode and from a cell rendered sensitive to a cell rendered insensitive when the optical system passes from the first imaging mode to second imaging mode, wherein the TDI sensor comprises a sequence of cells (42, 44, 42, 44) numbered 1 to N, the TDI sensor being configured for transferring a charge from the cell numbered 1 via the cells numbered 2 to N -1 to the cell numbered N, wherein the TDI sensor further comprises a striped color filter for only blocking the first spectrum, wherein each cell (42; 44) in the sequence of cells is inherently light-sensitive in the sense that they would accumulate a charge if they were exposed to light having the first spectrum, but wherein each said cell is rendered either sensitive or insensitive to the first spectrum by means of the striped color filter in the sense that when the TDI sensor is evenly illuminated by the light having the first spectrum, the intensity of the light incident on any of the insensitive cells is at most 20% of the intensity of the light incident on any of the sensitive cells, wherein the cells are configured in a periodic manner, wherein the sequence of cells (42, 44, 42, 44) comprises, in this order: a first sensitive cell, at least one insensitive cell, and a second sensitive cell. - a time delay integration - TDI - sensor; - an optical system for illuminating the object and for guiding light (16; 18) of a first spectrum from the object onto the TDI sensor, the optical system having at least a first imaging mode for illuminating the object with a first light source of a third spectrum and a second imaging mode for illuminating the object with a second light source of a fourth spectrum, the fourth spectrum differing from the third spectrum; - a controller for synchronizing the TDI sensor and the optical system such that the TDI sensor shifts the charge from a cell rendered insensitive to a cell rendered sensitive when the optical system assumes the first imaging mode and from a cell rendered sensitive to a cell rendered insensitive when the optical system passes from the first imaging mode to second imaging mode, wherein the TDI sensor comprises a sequence of cells (42, 44, 42, 44) numbered 1 to N, the TDI sensor being configured for transferring a charge from the cell numbered 1 via the cells numbered 2 to N -1 to the cell numbered N, wherein the TDI sensor further comprises a striped color filter for only blocking the first spectrum, wherein each cell (42; 44) in the sequence of cells is inherently light-sensitive in the sense that they would accumulate a charge if they were exposed to light having the first spectrum, but wherein each said cell is rendered either sensitive or insensitive to the first spectrum by means of the striped color filter in the sense that when the TDI sensor is evenly illuminated by the light having the first spectrum, the intensity of the light incident on any of the insensitive cells is at most 20% of the intensity of the light incident on any of the sensitive cells, wherein the cells are configured in a periodic manner, wherein the sequence of cells (42, 44, 42, 44) comprises, in this order: a first sensitive cell, at least one insensitive cell, and a second sensitive cell.