From b122389badfcecc30e6e5fcc8f1534e5dce8b3d9 Mon Sep 17 00:00:00 2001 From: "Hannes F. Kuchelmeister" Date: Mon, 19 Jul 2021 10:51:42 +0200 Subject: [PATCH] swap x and y axis of peak finder to fix image display (this might however cause issues with the registration) --- situr/image/situ_image.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/situr/image/situ_image.py b/situr/image/situ_image.py index 314c914..67e25f6 100644 --- a/situr/image/situ_image.py +++ b/situr/image/situ_image.py @@ -39,7 +39,10 @@ class PeakFinderDifferenceOfGaussian(PeakFinder): img = img_as_float(img_array) peaks = blob_dog(img, min_sigma=self.min_sigma, max_sigma=self.max_sigma, threshold=self.threshold) - return peaks[:, 0:2] + + # Swap x and y + peaks = peaks[:, [0, 1]] = peaks[:, [1, 0]] + return peaks class SituImage: