Added morphological closing after the optical flow segmentation.