1. A method, comprising: detecting, using a processor, a plurality of edges in a plurality of images; determining, using the processor, a set edges from the plurality of edges that are matched across the plurality of images; and estimating, using the processor, camera poses of the plurality of images using a cost function that depends upon the set of edges.