Every pixel in a photograph of a person against a wall is a blend of two things. The compositing equation is the whole problem in one line:
C = αF + (1 - α)B
Enter fullscreen mode
Exit fullscreen mode
C is the pixel you can see. F is the foreground colour, B is the background colour, and α is how much of that pixel belongs to the foreground. Solid shirt, α is 1. Empty wall, α is 0. A single strand of hair crossing that pixel, α is 0.3 and the pixel is genuinely part person, part wall.






