Algorithms for Visual Maritime Surveillance with Rapidly Moving Camera