Moving object detection and classification in surveillance systems using moving cameras