diff --git a/Project.toml b/Project.toml index 3ff781a..a29f2e5 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "QuantitativeSusceptibilityMappingTGV" uuid = "bd393529-335a-4aed-902f-5de61cc7ff49" authors = ["Korbinian Eckstein korbinian90@gmail.com"] -version = "0.5.0" +version = "0.6.0" [deps] FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" diff --git a/src/tgv.jl b/src/tgv.jl index a14bb95..084feb1 100644 --- a/src/tgv.jl +++ b/src/tgv.jl @@ -107,10 +107,10 @@ end function get_default_iterations(res, step_size) # Heuristic formula - it = 2000 # default for res=[1,1,1] + it = 3200 # default for res=[1,1,1] min_iterations = 1000 # even low res data needs at least 1000 iterations - it = max(min_iterations, it / prod(res)^0.8) - it /= step_size^0.6 + it = max(min_iterations, it / prod(res)^0.42) + it /= step_size^0.6 # increasing the step size reduces the required iterations return round(Int, it) end