Model based compositing
First Claim
1. A computer-implemented digital compositing method of reducing the effect of shadows in a digital image cast by an object, the method comprising:
- obtaining average image pixel data from an input image that does not contain the object;
comparing a brightness of a current pixel in a current input image to a brightness of a corresponding pixel of the average image pixel data, wherein the current input image contains the object;
determining whether a hue value of the current pixel is within a hue tolerance of a hue of the corresponding pixel of the average image pixel data;
comparing a pattern surrounding the current pixel to a pattern surrounding the corresponding pixel of the average image pixel data, based on a comparison of the brightness of the current pixel to a brightness of one or more pixels adjacent the current pixel, and a comparison of the brightness of the corresponding pixel of the average image pixel data to a brightness of one or more pixels surrounding the corresponding pixel; and
adjusting a corresponding pixel in an alpha image that corresponds to portions of the current input image if the brightness of the current pixel is less than the brightness of the corresponding pixel in the average image pixel data, if the hue of the current pixel is within the hue tolerance of the hue of the corresponding pixel in the average image pixel data, and if the pattern surrounding the current pixel is substantially the same as the pattern surrounding the corresponding pixel in the average image pixel data.
4 Assignments
0 Petitions
Accused Products
Abstract
Digitally compositing an object from an input image onto a destination image is disclosed. The object is composited from an image having an arbitrary or non-uniform colored background containing some non-static elements onto a destination image with reduced effects from shadows cast by the object and with reduced gaps or holes within the object. The effect of shadows emanating from the object is reduced so that the composited object in the destination image contains only the object clearly outlined by the object'"'"'s physical boundaries without the effect of shadows cast by the object.
30 Citations
15 Claims
-
1. A computer-implemented digital compositing method of reducing the effect of shadows in a digital image cast by an object, the method comprising:
-
obtaining average image pixel data from an input image that does not contain the object; comparing a brightness of a current pixel in a current input image to a brightness of a corresponding pixel of the average image pixel data, wherein the current input image contains the object; determining whether a hue value of the current pixel is within a hue tolerance of a hue of the corresponding pixel of the average image pixel data; comparing a pattern surrounding the current pixel to a pattern surrounding the corresponding pixel of the average image pixel data, based on a comparison of the brightness of the current pixel to a brightness of one or more pixels adjacent the current pixel, and a comparison of the brightness of the corresponding pixel of the average image pixel data to a brightness of one or more pixels surrounding the corresponding pixel; and adjusting a corresponding pixel in an alpha image that corresponds to portions of the current input image if the brightness of the current pixel is less than the brightness of the corresponding pixel in the average image pixel data, if the hue of the current pixel is within the hue tolerance of the hue of the corresponding pixel in the average image pixel data, and if the pattern surrounding the current pixel is substantially the same as the pattern surrounding the corresponding pixel in the average image pixel data. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer-implemented system for reducing the effect of shadows cast by an object digitally composited onto a destination image, the system comprising:
-
a brightness comparator for comparing a brightness of a current pixel in an input image that contains an object to a brightness of a corresponding pixel in a background image model that does not contain the object; a hue analyzer for determining whether hue values of the current pixel are within hue tolerances of the corresponding pixel in the background image model; a texture comparator for comparing textures by comparing a pattern of brightness differences between the current pixel and pixels adjacent to the current pixel to a pattern of brightness differences between the corresponding pixel in the background image model and pixels adjacent to the corresponding pixel in the background image model; and an image modifier for adjusting portions of an alpha image that correspond to portions of the input image that contains the object, wherein the portions of the input image contain shadows cast by the object thereby conveying to the alpha image information on which portions of the input image that contains the object are shadows cast by the object, and wherein the adjustment is based on the comparison of the brightness and texture of the pixels in the input image that contains the object and the brightness and texture of the corresponding pixels in the input image that does not contain the object and if the hue values of the pixels of the input image that contains the object are within a hue tolerance value of the corresponding pixels in the input image that does not contain the object. - View Dependent Claims (9, 10, 11)
-
-
12. A system for reducing the effect of shadows cast by an object digitally composited onto a destination image, the system comprising:
-
means for comparing a brightness of a pixel in an input image that contains an object to a brightness of a corresponding pixel in an input image that does not contain the object; means for determining whether hue values of the pixel in the input image that contains the object are within hue tolerances of the corresponding pixel in the input image that does not contain the object; means for comparing a texture surrounding the pixel in the input image that contains the object to a texture surrounding the corresponding pixel in the input image that does not contain the object, based on a comparison of the brightness of the pixel in the input image that contains the object to a brightness of one or more pixels surrounding the pixel in the input image that contains the object, and a comparison of the brightness of the corresponding pixel in the input image that does not contain the object to a brightness of one or more pixels surrounding the corresponding pixel in the input image that does not contain the object; and means for adjusting a corresponding pixel of an alpha image, wherein the input image contains shadows cast by the object, thereby conveying to the alpha image information on which portions of the input image that contains the object are shadows cast by the object. - View Dependent Claims (13)
-
-
14. A tangible computer readable storage medium that includes instructions that, if executed by a computer system, cause the computer system to perform a method of reducing the effect of shadows in a digital image cast by an object by:
-
storing in a memory a first image that contains an object and a second background image that does not contain the object; comparing a brightness and a hue of a pixel in a first image to a brightness and a hue of a corresponding pixel in the second image; comparing a texture associated with the pixel in the first image to a texture associated with the corresponding pixel in the second image by comparing a difference in brightness between the pixel in the first image and a neighboring pixel in the first image to a difference in brightness between the corresponding pixel in the second image and a corresponding neighboring pixel in the second image; and changing a value of a corresponding pixel of an alpha image that corresponds to the pixel in the first image to indicate that the corresponding pixel of the alpha image depicts part of a shadow cast by the object if the brightness of the pixel in the first image is less than brightness of the corresponding pixel in the second image and if the hue of the pixel in the first image and the corresponding pixel in the second image are substantially the same and if the texture associated with the pixel in the first image is substantially the same as the texture associated with the corresponding pixel in the second image.
-
-
15. A system for reducing the effect of shadows in a digital image cast by an object, the system including:
-
a processor that is configured to perform a sequence of programmed instructions to; store in a memory a first image that contains an object and a background image model derived from an image that does not contain the object; compare a brightness and a hue of a pixel in a first image to a brightness and a hue of a corresponding pixel in the background image model; compare a pattern around the pixel in the first image to a pattern around the corresponding pixel in the background image model by comparing a difference in brightness between the pixel in the first image and a brightness of each neighboring pixel in the first image to a difference in brightness between the corresponding pixel in the background image model and a brightness of each corresponding neighboring pixel in the background image model; and change a value of a corresponding pixel of an alpha image that corresponds to the pixel in the first image to indicate that the corresponding pixel contains part of a shadow cast by the object if the brightness of the pixel in the first image is less than brightness of the corresponding pixel in the second image and if the hue of the pixel in the first image and the corresponding pixel in the second image are substantially the same and if the pattern around the pixel in the first image is substantially the same as the pattern around the corresponding pixel in the second image.
-
Specification