mirror of
https://github.com/13hannes11/situr.git
synced 2024-09-03 20:50:58 +02:00
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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user