A method of performing spectral OCT imaging on a target involves repeatedly scanning said target along a transverse scanning line with an object beam derived from an OCT interferometer having a narrowband source. The wavelength of the narrowband source is modulated over a range of wavelengths at a rate that is slow relative to the rate of scanning the target. The object beam returned from the target is detected to produce a set of data obtained from multiple scans along said scanning line over the entire range of wavelengths. The data is then processed to extract an OCT image (typically a B-scan) of the target containing depth information.