Region extraction and shape analysis of aerial photographs