Skip to content

Commit

Permalink
adjust default iterations to 2000 for 1x1x1
Browse files Browse the repository at this point in the history
  • Loading branch information
korbinian90 committed Dec 23, 2023
1 parent cc2daff commit 7bc7cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tgv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ end

function get_default_iterations(res, step_size)
# Heuristic formula
it = 2500 # default for res=[1,1,1]
min_iterations = 1500 # even low res data needs at least 1500 iterations
it = 2000 # 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
return round(Int, it)
Expand Down

0 comments on commit 7bc7cb8

Please sign in to comment.