@@ -14,8 +14,8 @@ K = 16 # orientations
14
14
β = K/ sqrt (2 * N^ 2 ); # needed for the unit coherency in spatial and orientation dimensions
15
15
M = 1.
16
16
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)
19
19
20
20
# #################
21
21
# Gratings tests #
@@ -26,13 +26,13 @@ mkpath("results")
26
26
img = Float64 .(load (" test_images/gratings.png" ))
27
27
28
28
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 ))
30
30
31
31
# Dependence w.r.t. τ
32
32
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 ))
36
36
37
37
# #############################
38
38
# Original Poggendorff tests #
0 commit comments