From 6a4e5e014f73d6e41a062e9a8d3e98cb80ee3dbc Mon Sep 17 00:00:00 2001 From: Lior Shachaf Date: Tue, 8 Oct 2024 16:45:19 -0400 Subject: [PATCH] fixing blob radius calculation in 2d --- 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