1. A mobile device comprising: a digital camera to capture an image; a non-transitory computer-readable medium storing computer-executable code; and a processor to execute the computer-executable code to: select pair of points from the image, the pair of points connectable by a line; divide the line into a plurality of line segments; compute a segment image quality parameter for each line segment; compute a line image quality parameter for the line from the segment image quality parameters; and compute an image quality parameter for the image from the line image quality parameter.