Image layyering AHE sky detection