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 edges within a first threshold angle of vertical, is within a second threshold angle of horizontal and if a distribution of detected edges within the second threshold angle of horizontal is substantially the same as that of at least one adjacent image region.