An exemplary method includes receiving a trimap for an image that
specifies a background region, a foreground region and an unknown region
for the image wherein a boundary exists between the foreground region and
the unknown region and wherein another boundary exists between the
unknown region and the background region, solving a set of Poisson
equations having boundary conditions for the two boundaries to provide a
matte that distinguishes a foreground region from a background region in
the unknown region, and refining the matte by solving a set of Poisson
equations for a local unknown region. Various other exemplary
technologies are also presented.