swap x and y axis of peak finder to fix image display (this might however cause issues with the registration)

This commit is contained in:
2021-07-19 10:51:42 +02:00
parent 3920451644
commit b122389bad

View File

@@ -39,7 +39,10 @@ class PeakFinderDifferenceOfGaussian(PeakFinder):
img = img_as_float(img_array) img = img_as_float(img_array)
peaks = blob_dog(img, min_sigma=self.min_sigma, peaks = blob_dog(img, min_sigma=self.min_sigma,
max_sigma=self.max_sigma, threshold=self.threshold) 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: class SituImage: