Skip to content

Commit

Permalink
Merge branch 'GaussianSmoothing' of github.com:mathiser/rt-utils into…
Browse files Browse the repository at this point in the history
… GaussianSmoothing
  • Loading branch information
Mathis Rasmussen committed Jun 15, 2023
2 parents cafdfe0 + bbc5d48 commit bffd22d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions rt_utils/smoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,13 @@
# A set of parameters that is know to work well
default_smoothing_parameters_2d = {
"scaling_iterations": 2,
"filter_iterations": 1,
"filter_iterations": 3,
"crop_margins": [20, 20, 1],
"np_kron": {"scaling_factor": 3},
"ndimage_gaussian_filter": {"sigma": 2,
"radius": 3},
"threshold": {"threshold": 0.4},
"threshold": {"threshold": 0.5},
}
# A set of parameters that is know to work well
default_smoothing_parameters_2d_2 = {
"scaling_iterations": 3,
"crop_margins": [20, 20, 1],
"np_kron": {"scaling_factor": 2},
"ndimage_gaussian_filter": {"sigma": 2,
"radius": 5},
"threshold": {"threshold": 0.4},
}


def kron_upscale(mask: np.ndarray, params):
"""
Expand Down

0 comments on commit bffd22d

Please sign in to comment.