Sun, 21 Apr 2024 12:46:04 +0300
Change rand to randn in PET
src/PET/ImGenerate.jl | file | annotate | diff | comparison | revisions | |
src/PET/PET.jl | file | annotate | diff | comparison | revisions |
--- a/src/PET/ImGenerate.jl Sat Apr 20 13:54:22 2024 +0300 +++ b/src/PET/ImGenerate.jl Sun Apr 21 12:46:04 2024 +0300 @@ -108,7 +108,7 @@ function rotatebytheta(params) - r = params.rotation_factor*(2*rand(rng)-1) + r = params.rotation_factor*randn(rng) return r end @@ -272,8 +272,8 @@ end -function imgen_shepplogan_radon(origsize,sz) - im = convert(Array{Float64},TestImages.shepp_logan(origsize, highContrast=true)) +function imgen_shepplogan_radon(sz) + im = convert(Array{Float64},TestImages.shepp_logan(sz[1], highContrast=true)) dynrange = maximum(im) return ImGen(curry(generate_radon, im, sz), sz, 1, dynrange, "shepplogan$(sz[1])x$(sz[2])") end
--- a/src/PET/PET.jl Sat Apr 20 13:54:22 2024 +0300 +++ b/src/PET/PET.jl Sun Apr 21 12:46:04 2024 +0300 @@ -101,8 +101,8 @@ noise_level = 0.5, shake_noise_level = 0.1, shake = 1.0, - rotation_factor = 0.15, - rotation_noise_level = 0.0025, + rotation_factor = 0.075, + rotation_noise_level = 0.0075, α = 1.0, ρ̃₀ = 1.0, σ̃₀ = 1.0, @@ -120,7 +120,7 @@ L_experiment = false, ) -const petscan = imgen_shepplogan_radon(p_known₀_pet.origsize, p_known₀_pet.sz) +const petscan = imgen_shepplogan_radon(p_known₀_pet.sz) const pet_experiments_pdps_known = ( Experiment(AlgorithmDualScaling, DisplacementConstant, petscan,