Moving target detection and tracking in dynamic scenes