offlinemot.fix_view.FixView.set_new_bg
- FixView.set_new_bg(bg_rgb, fg_mask=None)[source]
Set a new background image, keypoints and descriptors according to the forground if provided
- Parameters
bg_rgb (numpy array) – The new background to match each frame with
fg_mask (numpy array, optional) – The mask defining where to detect the background keypoints and descriptors