Skip to content

Upgrading scikit-image 0.21 to 0.22

Breaking0.21.0 → 0.22.0Breaking6Platform3Deprecated1New1Changed14Fixed9Other66

BreakingUpgrade verdict

6 breaking changes and 3 platform requirement changes.

  • The old inverse filter function is gone; switch to the renamed function.
  • The old Hessian eigenvalue helper is removed; compute the Hessian matrix and its eigenvalues with the feature module functions instead.
  • Gaussian filtering no longer guesses whether an image is color; set channel_axis=-1 explicitly for color images.
  • Removes future.graph after the v0.21 release.
Top 5 of 10 that need code or config changes

Python requirement changed in 0.22.0rc1: >=3.8 → >=3.9.

Drops pywavelets.

Installs 8 packages in all (was 9).

Breaking6
Removes deprecated skimage.filters.inverse; use skimage.filters.filter_inverse instead.
skimage.filters.inverseskimage.filters.filter_inverse
Removes deprecated skimage.filters.ridges.compute_hessian_eigenvalues; use hessian_matrix_eigvals on hessian_matrix results.
skimage.filters.ridges.compute_hessian_eigenvaluesskimage.feature.hessian_matrix_eigvalsskimage.feature.hessian_matrix
Removes deprecated automatic color channel detection in skimage.filters.gaussian; channel_axis=None now means grayscale.
skimage.filters.gaussianchannel_axis
Removes future.graph after the v0.21 release.
future.graph
Makes PyWavelets an optional dependency required only for denoise_wavelet and estimate_sigma.
skimage.restoration.denoise_waveletskimage.restoration.estimate_sigma
Changes number of returned arguments in skimage.registration.phase_cross_correlation to always return shift, error, and phasediff.
skimage.registration.phase_cross_correlationshifterrorphasediff
Platform3
Drops Python 3.8 support per SPEC 0.
Requires sklearn 1.1, as per SPEC0.
sklearn
Announces Python 3.12 support.
Deprecated1
Deprecates return_error in skimage.registration.phase_cross_correlation.
skimage.registration.phase_cross_correlationreturn_error

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: function handle_np2()
  • removed: class DescriptorException(FisherVectorException)
  • removed: class FisherVectorException(Exception)
  • removed: function fisher_vector(descriptors, gmm, *, improved=…, alpha=…)
  • removed: function learn_gmm(descriptors, *, n_modes=…, gm_args=…)
  • removed: export compute_hessian_eigenvalues
  • removed: export inverse
  • removed: function inverse(data, impulse_response=…, filter_params=…, max_gain=…, predefined_filter=…)
  • removed: function compute_hessian_eigenvalues(image, sigma, sorting=…, mode=…, cval=…, use_gaussian_derivatives=…)
  • removed: function ball_kernel(radius, ndim)
  • removed: function ellipsoid_kernel(shape, intensity)
  • removed: function rolling_ball(image, *, radius=…, kernel=…, nansafe=…, num_threads=…)