Skip to content

Commit b2e88da

Browse files
committed
Unnormalized some experiments
1 parent 27b3231 commit b2e88da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

experiments.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ K = 16 # orientations
1414
β = K/sqrt(2*N^2); # needed for the unit coherency in spatial and orientation dimensions
1515
M = 1.
1616

17-
sR_lhe(img, λ, σμ, α, Δt, Δτ, τ; args...) = SrLHE.sR_lhe(img, β, σμ, τ, λ, M, θs = K, α = α, Δt = Δt, Δτ = Δτ; args...)
18-
sR_wc(img, λ, σμ, α, Δt, Δτ, τ; args...) = SrLHE.sR_wc(img, β, σμ, τ, λ, M, θs = K, α = α, Δt = Δt, Δτ = Δτ; args...)
17+
sR_lhe(img, λ, σμ, α, Δt, Δτ, τ; args...) = SrLHE.sR_lhe(img, β, σμ, τ, λ, M, θs = K, α = α, Δt = Δt, Δτ = Δτ; args...) |> x->clamp01nan.(x)
18+
sR_wc(img, λ, σμ, α, Δt, Δτ, τ; args...) = SrLHE.sR_wc(img, β, σμ, τ, λ, M, θs = K, α = α, Δt = Δt, Δτ = Δτ; args...) |> x->clamp01nan.(x)
1919

2020
##################
2121
# Gratings tests #
@@ -26,13 +26,13 @@ mkpath("results")
2626
img = Float64.(load("test_images/gratings.png"))
2727

2828
save("results/gratings_wc.png", sR_wc(img, 0.01, 6.5, 20, 0.1, 0.01, 5.))
29-
save("results/gratings_lhe.png", sR_lhe(img, 2., 1., 8, 0.15, 0.01, 5.))
29+
save("results/gratings_lhe.png", sR_lhe(img, 2., 1., 8, 0.15, 0.01, 5., normalized = false))
3030

3131
# Dependence w.r.t. τ
3232

33-
save("results/gratings_τ=0.1_lhe.png", sR_lhe(img, 2., 1., 6, 0.15, 0.01, 0.1))
34-
save("results/gratings_τ=0.5_lhe.png", sR_lhe(img, 2., 1., 6, 0.15, 0.01, 0.5))
35-
save("results/gratings_τ=2.5_lhe.png", sR_lhe(img, 2., 1., 6, 0.15, 0.01, 2.5))
33+
save("results/gratings_τ=0.1_lhe.png", sR_lhe(img, 2., 1., 6, 0.15, 0.01, 0.1, normalized = false))
34+
save("results/gratings_τ=0.5_lhe.png", sR_lhe(img, 2., 1., 6, 0.15, 0.01, 0.5, normalized = false))
35+
save("results/gratings_τ=2.5_lhe.png", sR_lhe(img, 2., 1., 6, 0.15, 0.01, 2.5, normalized = false))
3636

3737
##############################
3838
# Original Poggendorff tests #

0 commit comments

Comments
 (0)