Skip to content

Commit

Permalink
Added support for scikit-image 0.22+
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed May 1, 2024
1 parent 2b2e4c7 commit 440acfe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

Release 2.1.15
--------------

* Add support for scikit-image 0.22+, `which dropped <https://scikit-image.org/docs/0.22.x/release_notes/release_0.22.html>`_ for some arguments of `skimage.registration.phase_cross_correlation`.

Release 2.1.14
--------------

Expand Down
2 changes: 0 additions & 2 deletions skued/image/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def itrack_peak(images, row_slice=None, col_slice=None, precision=1 / 10):
reference_image=ref,
moving_image=sub,
upsample_factor=int(1 / precision),
return_error="always",
)
yield np.asarray(shift)

Expand Down Expand Up @@ -96,7 +95,6 @@ def align(image, reference, mask=None, fill_value=0.0):
reference_image=reference,
moving_image=image,
reference_mask=mask,
return_error="always",
)
return ndi.shift(image, shift=shift, order=2, mode="constant", cval=fill_value)

Expand Down
1 change: 0 additions & 1 deletion skued/image/center.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def autocenter(im, mask=None):
moving_image=im_i[::downsampling, ::downsampling],
reference_mask=mask[::downsampling, ::downsampling],
moving_mask=mask_i[::downsampling, ::downsampling],
return_error="always",
)
# Because images were downsampled, the correction
# factor to the rough center should be increased from the measured shift
Expand Down

0 comments on commit 440acfe

Please sign in to comment.