1. A method for segmenting images, comprising: receiving a source image, the source image including a foreground portion and a background portion, wherein the background portion includes image content of a three-dimensional (3D) environment; determining a camera pose of the source image by comparing the source image to a plurality of target images of the 3D environment; generating a segmented source image by segmenting the foreground portion from the background portion in response to the camera pose; and storing the segmented source image and the camera pose in a networked database; wherein segmenting the foreground portion comprises: for each target image, applying a homography matrix to the target image to generate a projection mask and a projected target image, the projection mask indicating at least some of the background portion of the target image within the source image; color adjusting each projected target image to the source image; generating a plurality of intensity difference maps by comparing the color-adjusted projected target images to the source image; and merging the intensity difference maps to generate a blended difference map.