1. A method of detecting a presence of a building in a captured image, the method comprising: dividing, by a processor, the captured image into a plurality of image regions; detecting, by the processor, a dominant angle of detected edges within each of the plurality of image regions; and detecting, by the processor, the presence of a building in a given one of the plurality of image regions if the dominant angle of detected edges within the given image region, excluding all substantially vertical edges, being edges that are within a first threshold angle of vertical, is substantially horizontal, being an angle within a second threshold angle of horizontal, and if a distribution of the substantially horizontal detected edges is substantially the same as that of at least one adjacent image region in both a horizontal and a vertical direction.