Horizon Stabilization

Calculate camera orientation from the horizon to stabilize and rectify images from ships.
978 Downloads
Updated 21 Jul 2015

View License

This toolbox accompanies the article, "A Horizon-tracking Method for Shipboard Video Stabilization and Rectification," by M. Schwendeman and J. Thomson, currently in review at the Journal of Atmospheric and Oceanic Technology.
It contains functions to:
1) Detect the horizon using the Hough Transform (for which either the image processing or computer vision toolbox is needed).
2) Calculate the exact camera pitch and roll from the horizon orientation.
3) Stabilize multiple images taken from varying camera angles.
4) Rectify images to a flat sea-surface using a known camera height.
5) Estimate the errors in the stabilization or rectification if the uncertainty in camera orientation is known.

Included are two scripts and a set of sample images which are intended to guide the user in the usage of these functions.

Cite As

Michael Schwendeman (2024). Horizon Stabilization (https://www.mathworks.com/matlabcentral/fileexchange/47606-horizon-stabilization), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Corrected azimuth rotation matrix in functions Image2Image, Image2World, World2Image, and StabilizeImages

1.0.0.0