Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
isentropic committed Jan 21, 2022
1 parent a1f57f4 commit 8df6251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function blurdiff(A::AbstractArray, B::AbstractArray, sigma)
Af = imfilter(A, kern, NA())
Bf = imfilter(B, kern, NA())
d = sad(Af, Bf)
diffscale = max(_abs(maximum_finite(abs, A)), _abs(maximum_finite(abs, B)))
diffscale = max(_abs(maxabsfinite(A)), _abs(maxabsfinite(B)))
diffpct = d / (length(Af) * diffscale)

diffpct
Expand Down

0 comments on commit 8df6251

Please sign in to comment.