1. A method of estimating a tilt angle in an image programmed in a memory on a device comprising: a. computing a gradient feature; b. implementing line segment tracking including locating segment junctions using neighborhood look-up table and tracking edges between junction points; c. estimating a line segment; and d. estimating an orientation deviation.