Region growing for motion segmentation and an attention based algorithm