A Horizon-Tracking Method for Shipboard Video Stabilization and Rectification*