Vertical and horizontal references determined by linear perspective and optic flow information