Objective measurement for image defogging algorithms