An Effective Real-Time Mosaicing Algorithm Apt to Detect Motion Through Background Subtraction Using a PTZ Camera