Update dependency scikit-image to v0.19.3#74
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
d5a5478 to
e84c3a7
Compare
e84c3a7 to
e87bb09
Compare
e87bb09 to
364658f
Compare
364658f to
430cd28
Compare
430cd28 to
6e0d4c7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.16.2->==0.19.3Release Notes
scikit-image/scikit-image
v0.19.3Compare Source
Announcement: scikit-image 0.19.3
We're happy to announce the release of scikit-image v0.19.3!
scikit-image is an image processing toolbox for SciPy that includes algorithms
for segmentation, geometric transformations, color space manipulation,
analysis, filtering, morphology, feature detection, and more.
For more information, examples, and documentation, please visit our website:
https://scikit-image.org
Bugs Fixed
skimage.restoration.cycle_spin(now defaults to single channel again)tifffilerelease.General Maintenance
skimage.future.manual_polygon_segmentationto work with Matplotlib 3.5.skimage.io.imreadto avoid warnings when usingimageio>=2.16.2.Pull Requests Included
test_tifffile_kwarg_passthrough) (#6357)10 authors added to this release [alphabetical by first name or login]
7 reviewers added to this release [alphabetical by first name or login]
v0.19.2Compare Source
scikit-image 0.19.2
We're happy to announce the release of scikit-image v0.19.2! This is primarily
a bug fix release, although there is one new gallery example related to
detection of fluorescence at the nuclear envelope of mammalian cells.
Pull Requests Included
enforce_connectivity=Trueandstart_label > 0) (gh-6246)9 authors added to this release [alphabetical by first name or login]
8 reviewers added to this release [alphabetical by first name or login]
v0.19.1Compare Source
scikit-image 0.19.1
We're happy to announce the release of scikit-image v0.19.1!
This is a small bug fix release that resolves a couple of backwards compatibility issues and a couple of issues with the wheels on PyPI. Specifically, MacOS wheels for Apple M1 (arm64) on PyPI were broken in 0.19.0, but should now be repaired. The arm64 wheels are for MacOs >= 12 only. Wheel sizes are also greatly reduced relative to 0.19.0 by stripping debug symbols from the binaries and making sure that Cython-generated source files are not bundled in the wheels.
Pull Requests Included
channel_axisparameter in transform functions) (gh-6100)3 authors added to this release [alphabetical by first name or login]
5 reviewers added to this release [alphabetical by first name or login]
v0.19.0Compare Source
Announcement: scikit-image 0.19.0
We're happy to announce scikit-image v0.19.0!
scikit-image is an image processing toolbox for SciPy that includes algorithms for segmentation, geometric transformations, color space manipulation, analysis, filtering, morphology, feature detection, and more.
For more information, examples, and documentation, please visit our website: https://scikit-image.org
A highlight of this release is the addition of the popular scale-invariant feature transform (SIFT) feature detector and descriptor. This release also
introduces a perceptual blur metric, new pixel graph algorithms, and most functions now operate in single-precision when single-precision inputs are provided. Many other bug fixes, enhancements and performance improvements are detailed below.
A significant change in this release is in the treatment of multichannel images. The existing
multichannelargument to functions has been deprecated in favor of a newchannel_axisargument.channel_axiscan be used to specify which axis of an array contains channel information (withchannel_axis=Noneindicating a grayscale image).scikit-image now uses "lazy loading", which enables users to access the functions from all
skimagesubmodules without the overhead of eagerly importing all submodules. As a concrete example, after calling "import skimage" a user can directly call a function such asskimage.transform.warpwhereas previously it would have been required to first "import skimage.transform".An exciting change on the development side is the introduction of support for Pythran as an alternative to Cython for generating compiled code. We plan to keep Cython support as well going forward, so developers are free to use either one as appropriate. For those curious about Pythran, a good overview was given in the SciPy 2021 presentation, "Building SciPy Kernels with Pythran" (https://www.youtube.com/watch?v=6a9D9WL6ZjQ).
This release now supports 3.7-3.10. Apple M1 architecture (arm64) support is new to this release. MacOS 12 wheels are provided for Python 3.8-3.10.
New Features
channel_axisargument under the API section of the release notes.skimage.measure.blur_effect).skimage.restoration.denoise_nl_means) now supports 3D multichannel, 4D and 4D multichannel data whenfast_mode=True.skimage.filters.butterworth) was added.channel_axiskeyword argument that allows specification of which axis of an array corresponds to channels. For backwards compatibility, this parameter defaults tochannel_axis=-1, indicating that channels are along the last axis.random_statetomorphology.medial_axisandrestoration.unsupervised_wiener.numpy.random.Generator.saturationparameter toskimage.color.label2rgbskimage.metrics.normalized_mutual_informationskimage.util.label_pointsfunction for assigning labels to points.skimage.metrics.hausdorff_pairto find points separated by the Hausdorff distance.illuminantsandobserversparameter options were added toskimage.color.lab2rgb,skimage.color.rgb2lab,skimage.color.xyz2lab,skimage.color.lab2xyz,skimage.color.xyz2luvandskimage.color.luv2xyz.skimage.filters.threshold_multiotsuhas a newhistkeyword argument to allow use with a user-supplied histogram. (gh-5543)skimage.restoration.denoise_bilateraladded support for images containing negative values. (gh-5527)skimage.featurefunctionsblob_dog,blob_dohandblob_lognow support athreshold_relkeyword argument that can be used to specify a relative threshold (in range [0, 1]) rather than an absolute one. (gh-5517)skimage.graph:pixel_graphgenerates a graph (network) of pixels according to their adjacency, andcentral_pixelfinds the geodesic center of the pixels. (gh-5602)Improvements
skimage.restoration.inpaint_biharmonic) was refactored and is orders of magnitude faster than before.skimage.util.random_noiseis now faster.skimage.segmentation.slice) was improved for the case where a mask is supplied by the user (gh-4903). The specific superpixels produced by masked SLIC will not be identical to those produced by prior releases.exposure.adjust_gammahas been accelerated foruint8images thanks to a LUT (gh-4966).measure.labelhas been accelerated for boolean input images, by usingscipy.ndimage's implementation for this case (gh-4945).util.apply_parallelnow works with multichannel data (gh-4927).skimage.feature.peak_local_maxsupports now any Minkowski distance.skimage.filters.correlate_sparse.skimage.filters.try_all_threshold.skimage.filters.find_local_maxwhen given a finitenum_peaks.skimage.filters.rankmodule now release the GIL, enabling multithreaded use.skimage.restoration.denoise_tv_bregmanandskimage.restoration.denoise_bilateralnow release the GIL, enabling multithreaded use.skimage.color.label2rgbperformance regression was addressed.CircleModel.estimate. (gh-5190)skimage.restoration.denoise_tv_bregman,skimage.measure.block_reduce, andskimage.filters.threshold_local. (gh-5454)API Changes
multichannelboolean argument has been deprecated. All functions with multichannel support now use an integerchannel_axisto specify which axis corresponds to channels. Settingchannel_axisto None is used to indicate that the image is grayscale. Specifically, existing code withmultichannel=Trueshould be updated to usechannel_axis=-1and code withmultichannel=Falseshould now specifychannel_axis=None.measure.find_contours, corresponding to the half distance between the min and max values of the image (gh-4862).data.cathas been introduced as an alias ofdata.chelseafor a more descriptive name.levelparameter ofmeasure.find_contoursis now a keyword argument, with a default value set to(max(image) - min(image)) / 2.p_normargument was added toskimage.feature.peak_local_maxto add support for Minkowski distances.skimage.transforms.integral_imagenow promotes floating point inputs to double precision by default (for accuracy). A newdtypekeyword argument can be used to override this behavior when desired.channel_axiskeyword argument (see New Features section).compactnessparameter has an effect that is independent of the input image's scaling.skimage.register.phase_cross_correlationmay result in a different result as compared to prior releases. The prior behavior of "unnormalized" cross correlation is still available by explicitly settingnormalization=None. There is no change to the masked cross-correlation case, which uses a different algorithm.Bugfixes
labelsargument renumbering inskimage.feature.peak_local_maxis avoided (gh-5047).find_bounarieswith mode='subpixel' (gh-5447)._label2rgb_avgfunction.skimage.color.separate_stainsdoes not return negative values.EllipseModel.skimage.transform.hough_line.skimage.filters.gaussian.skimage.segmentation.random_walker.skimage.measure.regionprops_table) dtype bugfix.skimage.transform.rescalewhen using a small scale factor.skimage.measure.labelsegfault.skimage.segmentation.watershed): consider connectivity when calculating markers.skimage.transform.warpoutput dtype when order=0.intensity_imageextra_properties in regionprops.skimage.metric.structural_similaritywhen image is too small.skimage.segmentation.find_boundaries.skimage.exposure.is_low_contrastfor boolean inputs.skimage.metric.structural_similarity.skimage.filters.threshold_otsu.skimage.feature.blob_dogdocstring example and normalization.skimage.exposure.adjust_gamma.offsetsattribute ofskimage.graph.MCPis now public. (gh-5547)skimage.exposure.histogramandskimage.measure.regionprops_table. (gh-5522)skimage.register.phase_cross_correlation. (gh-5461)convex_hull) (gh-6008)Completed Deprecations from Prior Releases
measure.label, the deprecatedneighborsparameter has been removed (useconnectivityinstead).skimage.color.rgb2greyandskimage.color.grey2rgbfunctions have been removed (useskimage.color.rgb2grayandskimage.color.gray2rgbinstead).skimage.color.rgb2grayno longer allows grayscale or RGBA inputs.alphaparameter ofskimage.color.gray2rgbhas now been removed. Useskimage.color.gray2rgbafor conversion to RGBA.order > 0now raises a ValueError.anti-aliasing=Truewill raise a ValueError.bg_labelparameter ofskimage.color.label2rgbis now 0.filterparameter ofskimage.transform.iradonhas now been removed (usefilter_nameinstead).skimage.draw.circlefunction has been removed (useskimage.draw.diskinstead).skimage.feature.register_translationfunction has been removed (useskimage.registration.phase_cross_correlationinstead).skimage.feature.masked_register_translationfunction has been removed (useskimage.registration.phase_cross_correlationinstead).skimage.measure.marching_cubes_classicfunction has been removed (useskimage.measure.marching_cubesinstead).skimage.measure.marching_cubes_lewinerfunction has been removed (useskimage.measure.marching_cubesinstead).skimage.segmentation.circle_level_setfunction has been removed (useskimage.segmentation.disk_level_setinstead).inplaceparameter ofskimage.morphology.flood_fillhas been removed (usein_placeinstead).skimage.util.padfunction has been removed (usenumpy.padinstead).modeinskimage.filters.hessianis now'reflect'.modeinskimage.filters.satois now'reflect'.modeinskimage.measure.profile_lineis now'reflect'.preserve_rangeinskimage.restoration.denoise_nl_meansis now False.start_labelinskimage.segmentation.slicis now 1.Newly introduced deprecations:
The
multichannelargument is now deprecated throughout the library and will be removed in 1.0. The newchannel_axisargument should be used instead. Existing code withmultichannel=Trueshould be updated to usechannel_axis=-1and code withmultichannel=Falseshould now specifychannel_axis=None.skimage.feature.greycomatrixandskimage.feature.greycopropsare deprecated in favor ofskimage.feature.graycomatrixandskimage.feature.graycoprops.The
skimage.morphology.greymodule has been renamedskimage.morphology.gray. The old name is deprecated.The
skimage.morphology.greyreconstructmodule has been renamedskimage.morphology.grayreconstruct. The old name is deprecated.see API Changes section regarding functions with deprecated argument names related to the number of iterations.
num_iterationsandmax_num_iterare now used throughout the library.see API Changes section on deprecation of the
selemargument in favor offootprintthroughout the libraryDeprecate
in_placein favor of the use of an explicitoutargument inskimage.morphology.remove_small_objects,skimage.morphology.remove_small_holesandskimage.segmentation.clear_borderThe
inputargument ofskimage.measure.labelhas been renamedlabel_image. The old name is deprecated.standardize on
num_iterfor paramters describing the number of iterations andmax_num_iterfor parameters specifying an iteration limit. Functions where the old argument names have now been deprecated are::The names of several parameters in
skimage.measure.regionpropshave been updated so that properties are better grouped by the first
word(s) of the name. The old names will continue to work for
backwards compatibility. The specific names that were updated are:
The
selemargument has been renamed tofootprintthroughout the library. Theselemargument is now deprecated.Additional details at: https://raw.githubusercontent.com/scikit-image/scikit-image/v0.19.0/doc/release/release\_0.19.rst
v0.18.3Compare Source
scikit-image 0.18.3
This is a small bugfix release for compatibility with Pooch 1.5 and SciPy 1.7.
Bug fixes
Pooch 1.5.0. (#5531, backport of #5529)
scipy.linalg.pinv2inrandom_walkerwhenusing the multigrid solver. (#5531, backport of #5437)
v0.18.2Compare Source
v0.18.1Compare Source
scikit-image 0.18.1
This is a bug fix release and contains the following two bug fixes:
See below for the new features and API changes in 0.18.0.
Announcement: scikit-image 0.18.0
We're happy to announce the release of scikit-image v0.18.0!
scikit-image is an image processing toolbox for SciPy that includes algorithms
for segmentation, geometric transformations, color space manipulation,
analysis, filtering, morphology, feature detection, and more.
This release of scikit-image drops support for Python 3.6 in accordance with
the
NEP-29 Python and Numpy version support community standard <https://numpy.org/neps/nep-0029-deprecation_policy.html>_: Python 3.7 ornewer is required to run this version.
For more information, examples, and documentation, please visit our website:
https://scikit-image.org
New Features
skimage.filters.rank.compatibility with the scikit-learn API, has been added to
skimage.future. Try it out! (#4739)segmentation.expand_labelsto dilate labels whilepreventing overlap (#4795)
measure.regionpropsandregionprops_table(#4810)datasubpackage:data.eagle(#4922),
data.human_mitosis(#4939),data.cells3d(#4951), anddata.vortex(#5041). Also note that the image fordata.camerahasbeen changed due to copyright issues (#4913).
skimage.feature.structure_tensornow supports 3D (and nD) images as input(#5002)
resulting in significant speedups if multiple methods are tried on the same
image, or if a fast histogram method is used. (#5006)
measure.regionpropsnow supports multichannel intensity images (#5037)Documentation
gallery (#4648). Special thanks to Pierre Poulain and Fred Bernard
(Université de Paris and Institut Jacques Monod) for scientific review of
this example!
transform.AffineTransform(#4733)visualizing 3D data <https://scikit-image.org/docs/dev/auto_examples/applications/plot_3d_image_processing.html>_ (#4850)rgb2lab(#4839) andmarching_cubes(#4846)measure.marching_cubes, mentioning how to decimate amesh using mayavi (#4846)
util.random_noise(#5001)morphology.h_maximaandmorphology.h_minima(#4929).
util.img_as_int(#4888).using the PyData stack (pandas, seaborn) at
https://scikit-image.org/docs/dev/auto_examples/segmentation/plot_regionprops.html`_
(#5010).
how to download example datasets <https://scikit-image.org/docs/dev/install.html#downloading-all-demo-datasets>_which are not installed with scikit-image (#4984). Similarly, the contributor
guide has been updated to mention how to host new datasets in a gitlab
repository (#4892).
benchmarking section of the developer documentation <https://scikit-image.org/docs/dev/contribute.html#benchmarks>_has been expanded (#4905).
Improvements
pyramid_gaussian(#4696), Richardson-Lucy deconvolution (#4880)skimage.restoration.richardson_lucy, computations are now done insingle-precision when the input image is single-precision. This can give a
substantial performance improvement when working with single precision data.
filter_epsilonkeyword argumentto avoid division by very small numbers (#4823)
measure.find_contours(#4862)(
skimage.segmentation.slice) was improved for the case where a maskis supplied by the user (#4903). The specific superpixels produced by
masked SLIC will not be identical to those produced by prior releases.
exposure.adjust_gammahas been accelerated foruint8images by usinga look-up table (LUT) (#4966).
measure.labelhas been accelerated for boolean input images, by usingscipy.ndimage's implementation for this case (#4945).util.apply_parallelnow works with multichannel data (#4927).skimage.feature.peak_local_maxsupports now any Minkowski distance.functions (#4912)
morphology.convex_hull_imagenow uses much less memory by checking hullinequalities in sequence (#5020)
input vertices. (#5029)
(#5105, #5111)
API Changes
skimage.restoration.richardson_lucyreturns a single-precision outputwhen the input is single-precision. Prior to this release, double-precision
was always used. (#4880)
threshold_relinskimage.feature.cornerhaschanged from 0.1 to None, which corresponds to letting
skimage.feature.peak_local_maxdecide on the default. This is currentlyequivalent to
threshold_rel=0.measure.label, the deprecatedneighborsparameter has beenremoved. (#4942)
data.camerahas changed because of copyrightissues (#4913).
Bug fixes
label2rgbhas been fixed when the input image had np.uint8dtype (#4661)
skimage.color.separate_stains(#4725)peak_local_max(#2592, #4756, #4760,#5047)
random_walkerwhen input labels have negative values (#4771)outliers, which was previously raising an error
(#4844)
bg_colorparameter inlabel2rgbwhen its value is a string (#4840)metrics.variation_of_information(#4875)
skimage.measure.regionpropswas erroneousfor 3D objects, since it did not take tunnels into account. A new implementation
based on integral geometry fixes this bug (#4380).
skimage.morphology.selem.rectangletheheightargumentcontrolled the width and the
widthargument controlled the height.They have been replaced with
nrowandncol. (#4906)skimage.segmentation.flood_fillandskimage.segmentation.floodnow consistently handle negative values for
seed_point.segmentation.floodhave been fixed (#4948, #4972)draw.polygonfor the case of 0-d input has been fixed(#4943).
registration.phase_cross_correlation, aValueErroris raised whenNaNs are found in the computation (as a result of NaNs in input images).
Before this fix, an incorrect value could be returned where the input images
had NaNs (#4886).
Deprecations
indicesargument inskimage.feature.peak_local_maxhas beendeprecated. Indices will always be returned. (#4752)
skimage.feature.structure_tensor, anorderargument has beenintroduced which will default to 'rc' starting in version 0.20. (#4841)
skimage.feature.structure_tensor_eigvalshas been deprecated and will beremoved in version 0.20. Use
skimage.feature.structure_tensor_eigenvaluesinstead.
skimage.viewersubpackage and theskiviscript have beendeprecated and will be removed in version 0.20. For interactive visualization
we recommend using dedicated tools such as
napari <https://napari.org>_ orplotly <https://plotly.com>_. In a similar vein, theqtandskiviplugins of
skimage.iohave been deprecatedand will be removed in version 0.20. (#4941, #4954)
skimage.morphology.selem.rectanglethe argumentswidthandheighthave been deprecated. Usenrowandncolinstead.threshold_rel=0` was removed from the Examples of the following docstrings:skimage.feature.BRIEF,skimage.feature.corner_harris,skimage.feature.corner_shi_tomasi,skimage.feature.corner_foerstner,skimage.feature.corner_fast,skimage.feature.corner_subpix,skimage.feature.corner_peaks,skimage.feature.corner_orientations, andskimage.feature._detect_octave``.skimage.restoration._denoise, the warning regardingrescale_sigma=Nonewas removed.skimage.restoration._cycle_spin, the# doctest: +SKIPwas removed.Development process
pyproject.tomlhas been added to the sdist.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.