Stitching Long Grayscale Images with Fixed Lateral Overlap and Unknown Vertical Displacement in OpenCV

correlation/convolution should be able to handle this.