Skip to content

Commit

Permalink
Remove usage of skimage.feature module
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Aug 26, 2020
1 parent b437e64 commit 5cb34cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions skued/image/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from warnings import warn
from npstreams import array_stream
from scipy import ndimage as ndi
from skimage.feature import masked_register_translation, register_translation
from skimage.registration import phase_cross_correlation


Expand Down Expand Up @@ -53,7 +52,7 @@ def itrack_peak(images, row_slice=None, col_slice=None, precision=1 / 10):

for image in images:
sub[:] = image[row_slice, col_slice]
shift, *_ = register_translation(ref, sub, upsample_factor=int(1 / precision))
shift, *_ = phase_cross_correlation(reference_image=ref, moving_image=sub, upsample_factor=int(1 / precision))
yield np.asarray(shift)


Expand Down

0 comments on commit 5cb34cb

Please sign in to comment.