Patent attributes
Systems, methods, and apparatus, including software tangibly stored on a computer readable medium, involve receiving reference data and source data. The reference data includes a portion of a background image, and the background image includes an image of a background. The source data includes a portion of a source image, and the source image includes an image of the background and a foreground. A reference saturation value, which relates to a saturation of the portion of the background image, is calculated based on the reference data. A difference value, which relates to a difference between the portion of the background image and the portion of the source image, is calculated based on the source data and the reference data. A source image weighting value is determined based at least in part on a ratio between the difference value and the reference saturation value. The source image weighting value is stored, for example, in a machine-readable medium. The source image weighting value can be used for combining the source image with a replacement background image, which includes an image of a replacement background. Multiple source image weighting values can be calculated, for example, to generate an alpha channel for the source image.