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 15, 2023
1 parent 044c676 commit 9f03555
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rt_utils/smoothing.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"filter_iterations": 3,
"crop_margins": [20, 20, 1],
"np_kron": {"scaling_factor": 3},
"ndimage_gaussian_filter": {"sigma": 2,
"radius": 3},
"ndimage_gaussian_filter": {"sigma": 5,
"radius": 5},
"threshold": {"threshold": 0.5},
}

Expand Down Expand Up @@ -165,8 +165,8 @@ def get_final_mask_shape_and_bbox(mask, bbox, scaling_factor, scaling_iterations

bbox[:4] *= final_scaling_factor # Scale bounding box to final shape
bbox[:4] -= round(final_scaling_factor * 0.5) # Shift volumes to account for the shift that occurs as a result of the scaling
logging.info("Final shape: ", final_shape)
logging.info("Final bbox: ", bbox)
logging.info("Final shape: {}".format(final_shape))
logging.info("Final bbox: {}".format(bbox))
return final_shape, bbox


0 comments on commit 9f03555

Please sign in to comment.