1. A system, comprising: a memory storing computer executable components; and a processor configured to execute the following computer executable components stored in the memory: an edge detection component configured to determine edges in a first direction in an image; a selection component configured to select a set of the edges based at least in part on a set of edge selection criteria; an intersection component configured to determine respective locations where the set of edges intersect a set of lines in a second direction; a ratio component configured to determine a set of ratios of distances between subsets of the edges based on the respective locations; a quantization component configured to quantize the set of ratios; and a histogram component configured to construct a first histogram based on the set of quantized ratios.