Skip to content

Commit

Permalink
Reduce image slicing range extension
Browse files Browse the repository at this point in the history
  • Loading branch information
msorelli committed Sep 25, 2023
1 parent 24e6d35 commit 11e68ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foa3d/slicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def compute_overlap_range(smooth_sigma, frangi_sigma, truncate=4):
"""
max_sigma = np.max(np.concatenate((smooth_sigma, frangi_sigma)))

ext_rng = int(np.ceil(2 * truncate * max_sigma) // 2 * 2 + 1) if smooth_sigma is not None else 0
ext_rng = int(np.ceil(2 * truncate * max_sigma) // 2) if smooth_sigma is not None else 0

return ext_rng

Expand Down

0 comments on commit 11e68ff

Please sign in to comment.