Geometric and radiometric invariance for the extraction and matching of buildings in aerial photographs