Upgrading scikit-image 0.21 to 0.22
Breaking0.21.0 → 0.22.0Breaking6Platform3Deprecated1New1Changed14Fixed9Other66
BreakingUpgrade verdict
6 breaking changes and 3 platform requirement changes.
In plain terms
- 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.
Must act 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).
What you must change
Breaking6
Removes deprecated skimage.filters.inverse; use skimage.filters.filter_inverse instead.
skimage.filters.inverseskimage.filters.filter_inverseRemoves 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_matrixRemoves deprecated automatic color channel detection in skimage.filters.gaussian; channel_axis=None now means grayscale.
skimage.filters.gaussianchannel_axisRemoves future.graph after the v0.21 release.
future.graphMakes PyWavelets an optional dependency required only for denoise_wavelet and estimate_sigma.
skimage.restoration.denoise_waveletskimage.restoration.estimate_sigmaChanges number of returned arguments in skimage.registration.phase_cross_correlation to always return shift, error, and phasediff.
skimage.registration.phase_cross_correlationshifterrorphasediffPlatform3
Drops Python 3.8 support per SPEC 0.
Requires sklearn 1.1, as per SPEC0.
sklearnAnnounces Python 3.12 support.
Deprecations to plan for
Deprecated1
Deprecates return_error in skimage.registration.phase_cross_correlation.
skimage.registration.phase_cross_correlationreturn_errorAPI changes
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=…)