Skip to content

Commit

Permalink
Better defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathis Rasmussen committed Jun 24, 2023
1 parent 3683635 commit 728c90e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rt_utils/rtstruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def add_roi(
roi_generation_algorithm: Union[str, int] = 0,
apply_smoothing: Union[str, None] = None, # strings can be "2d" or "3d" or something else if a different smoothing function is used
smoothing_function = smoothing.pipeline, # Can be any function/set of functions that takes the following parameters
# # smoothing_function(mask=mask, apply_smoothing=apply_smoothing,
# smoothing_function(mask=mask, apply_smoothing=apply_smoothing,
# smoothing_parameters=smoothing_parameters) -> np.ndarray
# The returned np.ndarray can be of any integer scalar shape in x and y of the used dicom image.
# Note that Z direction should not be scaled. For instance CT_image.shape == (512, 512, 150).
Expand Down
3 changes: 1 addition & 2 deletions rt_utils/smoothing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"filter_iterations": 3,
"crop_margins": [20, 20, 1],
"np_kron": {"scaling_factor": 3},
"ndimage_gaussian_filter": {"sigma": 5},#,
# "radius": 5},
"ndimage_gaussian_filter": {"sigma": 2.3},
"threshold": {"threshold": 0.5},
}

Expand Down

0 comments on commit 728c90e

Please sign in to comment.