# HG changeset patch # User Neil Dizon # Date 1713714900 -10800 # Node ID 7c4dfeb48dd9aa6f7ec1df5b75deb04ec0d51724 # Parent e6a2ebaf467d234dd1430b39520da21e88294fcc clarified sino_sparsity diff -r e6a2ebaf467d -r 7c4dfeb48dd9 src/PET/ImGenerate.jl --- a/src/PET/ImGenerate.jl Sun Apr 21 18:45:09 2024 +0300 +++ b/src/PET/ImGenerate.jl Sun Apr 21 18:55:00 2024 +0300 @@ -117,8 +117,8 @@ function generate_radonmask(params) imdim = params.radondims sino_sparse = params.sino_sparsity - numone = Int64(round(sino_sparse*imdim[1]*imdim[2])) - numzero = imdim[1]*imdim[2]-numone + numzero = Int64(round(sino_sparse*imdim[1]*imdim[2])) + numone = imdim[1]*imdim[2]-numzero A = shuffle(rng,reshape([ones(numone); zeros(numzero)],(imdim[1],imdim[2]))) return A end diff -r e6a2ebaf467d -r 7c4dfeb48dd9 src/PET/PET.jl --- a/src/PET/PET.jl Sun Apr 21 18:45:09 2024 +0300 +++ b/src/PET/PET.jl Sun Apr 21 18:55:00 2024 +0300 @@ -123,7 +123,7 @@ sz = (256,256), scale = 1, c = 1.0, - sino_sparsity = 0.5, + sino_sparsity = 0.5, # Percentage of zero parts in the mask L = 300.0, L_experiment = false, stable_interval = union(Set(1500:2000),Set(3500:4000)),