A maximum likelihood approach to speed estimation of foreground objects in video signals