From 11e68ff64b6ee5c8134d646f36d5b3881c388559 Mon Sep 17 00:00:00 2001 From: msorelli Date: Mon, 25 Sep 2023 15:44:45 +0200 Subject: [PATCH] Reduce image slicing range extension --- foa3d/slicing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foa3d/slicing.py b/foa3d/slicing.py index f994666..ec0b53b 100644 --- a/foa3d/slicing.py +++ b/foa3d/slicing.py @@ -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