A method for the near real-time separation of foreground and background images of an object illuminated with visible light, the method comprising the steps of:
- a) illuminating the object with infrared (“IR”) light;
- b) producing a color video image of the object, the color video image further comprising a color foreground portion and a color background portion;
- c) producing an IR video image of the object, the IR video image further comprising an IR foreground portion and an IR background portion;
- d) producing a refined trimap from the color video image and the IR video image, the refined trimap defining a trimap image of the object further comprised of a foreground portion, a background portion and an unknown portion;
- e) producing an alpha matte from the color video image and the refined trimap;
- and
- f) separating the color foreground portion from the color background portion of the color video image by applying the alpha matte to the color video image.