Skip to content

Commit

Permalink
Update Synthetic_MaxPol.m
Browse files Browse the repository at this point in the history
  • Loading branch information
WANG-Guangxin authored Jul 21, 2021
1 parent d4cb69f commit 3f35ba5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/Dehaze/NR-FQA/Synthetic_MaxPol.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
% find sigma approximate
threshold = .9;
indx = cdf < threshold;
if sum(indx) ~= 0
sigma_apprx = x(sum(indx))/max(x);
else
sigma_apprx = 0;
end
%c = min(.45, 1 - min(.96, 8*sigma_apprx));
c = (1-tanh(50*(sigma_apprx-.095)))/2*.41+.04;

Expand Down

0 comments on commit 3f35ba5

Please sign in to comment.