Check if 2 images were originally single image split

Hi, is there an easy way to have 2 images (image_a.jpg and image_b.jpg) and check if they come from the same original image but were split?

e.g: I have image image_a_1.jpg and image_a_2.jpg that come from splitting image_a.jpg vertically down the middle.
Can I maybe compare all the rightmost pixels from image_a_1.jpg against all the leftmost pixels from image_a_2.jpg or something like that?

related: