A method for spectral domain optical coherence tomography, the method comprising: receiving, by a processor, a matrix of data comprising: a first vector of data generated using a first reference arm having a first path length and representing a state of a sample in a first time window that includes a first time, a second vector of data generated using a second reference arm having a second path length and representing the state of the sample in the first time window, a third vector of data generated using the first reference arm and representing a state of the sample in a second time window that does not include the first time, and a fourth vector of data generated using the second reference arm and representing the state of the sample in the second time window; generating, by the processor, first image data based on the first vector of data and the third vector of data; generating, by the processor, second image data based on the second vector of data and the fourth vector of data; calculating, by the processor, a spatial offset between the first image data and the second image data based on a comparison of a portion of the first image data and a portion of the second image data; appending, by the processor, a first plurality of vectors to the portion of the first image data to generate a zero padded image, wherein the number of vectors appended is based on the spatial offset; removing, by the processor, a second plurality of vectors from the second image data to generate a cropped image, wherein the number of vectors removed is based on the spatial offset; and merging, by the processor, the zero padded image and the cropped image to generate an image of the sample with decreased sensitivity roll-off. receiving, by a processor, a matrix of data comprising: a first vector of data generated using a first reference arm having a first path length and representing a state of a sample in a first time window that includes a first time, a second vector of data generated using a second reference arm having a second path length and representing the state of the sample in the first time window, a third vector of data generated using the first reference arm and representing a state of the sample in a second time window that does not include the first time, and a fourth vector of data generated using the second reference arm and representing the state of the sample in the second time window; a first vector of data generated using a first reference arm having a first path length and representing a state of a sample in a first time window that includes a first time, a second vector of data generated using a second reference arm having a second path length and representing the state of the sample in the first time window, a third vector of data generated using the first reference arm and representing a state of the sample in a second time window that does not include the first time, and a fourth vector of data generated using the second reference arm and representing the state of the sample in the second time window; generating, by the processor, first image data based on the first vector of data and the third vector of data; generating, by the processor, second image data based on the second vector of data and the fourth vector of data; calculating, by the processor, a spatial offset between the first image data and the second image data based on a comparison of a portion of the first image data and a portion of the second image data; appending, by the processor, a first plurality of vectors to the portion of the first image data to generate a zero padded image, wherein the number of vectors appended is based on the spatial offset; removing, by the processor, a second plurality of vectors from the second image data to generate a cropped image, wherein the number of vectors removed is based on the spatial offset; and merging, by the processor, the zero padded image and the cropped image to generate an image of the sample with decreased sensitivity roll-off.