From 48b2b904e1973c6e9b2aa4cead4a13f271fc6bc0 Mon Sep 17 00:00:00 2001 From: Korbinian Eckstein Date: Tue, 21 May 2024 09:10:10 +0200 Subject: [PATCH] update the default number of iterations to new paper evaluation; increment minor version --- Project.toml | 2 +- src/tgv.jl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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