摘要 |
A system and method are proposed for performing gradient-based compositing in a manner that reduces the appearance of residual errors as compared to traditional techniques. In embodiments, a target gradient field may be determined for a composite image and a solution composite image may be sought which minimizes a weighted aggregate error between the gradient field of the composite image and the target gradient field. The weighted aggregate error may be calculated such that a greater weight is placed on residuals occurring in smooth regions than on those occurring in textured regions, since residuals in textured regions may be less noticeable. In some embodiments, a weighted aggregate error may be defined as a weighted least-squares sum and/or minimized by solving a weighted Poisson equation. The computational cost of solving the weighted Poisson equation may be mitigated by ensuring that the equation is linear.
|