Visibility computation through image generalization