Roll and pitch estimation using visual horizon recognition