A CNN-based algorithm for moving object detection in stereovision applications