Vision based control of autonomous underwater vehicles : a thesis