We developed a method for automatic depth compositing which uses a stereo camera, without assuming static camera pose or constant illumination. We extended the Layered Graph Cut to general depth compositing by decoupling the color and depth distributions, so that the depth distribution is determined by the disparity map of the virtual scene to be composited in.