The Auto-Align Layers command can automatically align layers based on similar content in different layers, such as corners and edges. You assign one layer as a reference layer, or let Photoshop automatically choose the reference layer. Other layers are aligned to the reference layer so that matching content overlays itself.
Using the Auto-Align Layers command, you can combine images in several ways:
Replace or delete parts of images that have the same background. After aligning the images, use masking or blending effects to combine parts of each image into one image.
Stitch images together that share overlapping content.
For video frames shot against a static background, you can convert frames into layers, then add or delete content across multiple frames.