calculate rigid transform to map camera images on top of each other