1. Starting a new project
Once the program window pops up, you can start a new project by clicking the first
button on the toolbar:
Start a new
ro
ec
The next thing to do is to add images into this project. Specifically, you can add an original
foreground image, a trimap image and a new background image by clicking the following
three buttons:
Load an existing trimap Setting background as a solid color
Load a new background
Load a foreground image
Note that you can create a trimap image using other software. An ideal trimap image is a
grayscale image where 0 represents background pixels, 255 represents foreground pixels and
128 for mixture ones. Unlike previous approaches, this trimap can be relatively loose. Once
you have a foreground image and a trimap, you can invoke the algorithm by clicking this
main button
.
Calculate the matte and
foreground color
Zoom in/out current
image.
Switch views. Acceleration
key is “Tab”.
Improve foreground color
estimation.
Our system takes about 10 – 30 seconds for generating a matte along with a foreground color
estimation. Larger foreground objects or sparser user input will result in longer processing
time. For example, if the user only provides a few paint strokes as the input, then the system
will take much longer time than starting from a trimap.
Sometimes the generated matte is good but the foreground color estimation is not satisfying.
To improve foreground estimation you can click this button
. However this process is
much slower than matte estimation, but it is understandable since for foreground color we
need to estimate three color channels, and the matte has only one channel.
Once the computation is done, you can click or using “Tab” key to see the matte and
the current composite. You can change the background image or color at anytime.
- 1
- 2
- 3
- 4
前往页