An effective real-time mosaicing algorithm apt to detect motion through background subtraction using a PTZ camera