Building detection in complex scenes thorough effective separation of buildings from trees