1. A method of detecting lines in an image, comprising: pre-processing the image using a processor, comprising: generating an edge map of the image; and removing non-collinear edge pixels from the edge map; and detecting a line in the edge map.