I assign a photograph as a baseline image that all subsequent images are compared to the algorithm generates a black and white alpha channel or a layer mask that it then uses to select areas for inclusion in layers on a collage.