From 52a65e49a2ea268d578e0c98c389f1502279834a Mon Sep 17 00:00:00 2001 From: shachafl <66333410+shachafl@users.noreply.github.com> Date: Fri, 11 Oct 2024 21:09:44 -0400 Subject: [PATCH] fixing blob radius calculation in 2d (#2023) --- starfish/core/spots/FindSpots/blob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starfish/core/spots/FindSpots/blob.py b/starfish/core/spots/FindSpots/blob.py index 4146e0daf..e468f73b5 100644 --- a/starfish/core/spots/FindSpots/blob.py +++ b/starfish/core/spots/FindSpots/blob.py @@ -147,7 +147,7 @@ def image_to_spots( z_inds = np.asarray([0 for x in range(len(fitted_blobs_array))]) y_inds = fitted_blobs_array[:, 0].astype(int) x_inds = fitted_blobs_array[:, 1].astype(int) - radius = np.round(fitted_blobs_array[:, 2] * np.sqrt(3)) + radius = np.round(fitted_blobs_array[:, 2] * np.sqrt(2)) intensities = data_image[tuple([y_inds, x_inds])] # construct dataframe