scikit-image 0.19.3 (2022-06-12)
General Maintenance
Update skimage.future.manual_polygon_segmentation to work with Matplotlib 3.5.
Update skimage.io.imread to avoid warnings when using imageio>=2.16.2.
Now compatible with Pillow >= 9.1 (palette may contain <256 entries)
Added support for NumPy 1.23
scikit-image 0.19.0 (2021-12-03)
We’re happy to announce the release of 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 multichannel argument to functions has been deprecated
in favor of a new channel_axis argument. channel_axis can be used to
specify which axis of an array contains channel information (with
channel_axis=None indicating a grayscale image).
scikit-image now uses “lazy loading”, which enables users to access the
functions from all skimage submodules without the overhead of eagerly
importing all submodules. As a concrete example, after calling “import skimage”
a user can directly call a function such as skimage.transform.warp whereas
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 Python 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.
random_state
morphology.medial_axis
restoration.unsupervised_wiener
Seeding random number generators will not give the same results as the
underlying generator was updated to use numpy.random.Generator.
Added saturation parameter to skimage.color.label2rgb
Added normalized mutual information metric
skimage.metrics.normalized_mutual_information
threshold_local now supports n-dimensional inputs and anisotropic block_size
New skimage.util.label_points function for assigning labels to points.
Added nD support to several geometric transform classes
Added skimage.metrics.hausdorff_pair to find points separated by the
Hausdorff distance.
Additional colorspace illuminants and observers parameter options
were added to skimage.color.lab2rgb, skimage.color.rgb2lab,
skimage.color.xyz2lab, skimage.color.lab2xyz,
skimage.color.xyz2luv and skimage.color.luv2xyz.
skimage.filters.threshold_multiotsu has a new hist keyword argument
to allow use with a user-supplied histogram. (gh-5543)
skimage.restoration.denoise_bilateral added support for images containing
negative values. (gh-5527)
The skimage.feature functions blob_dog, blob_doh and blob_log
now support a threshold_rel keyword argument that can be used to specify
a relative threshold (in range [0, 1]) rather than an absolute one. (gh-5517)
Implement lazy submodule importing (gh-5101)
Implement weighted estimation of geometric transform matrices (gh-5601)
Added new pixel graph algorithms in skimage.graph:
pixel_graph generates a graph (network) of pixels
according to their adjacency, and central_pixel finds
the geodesic center of the pixels. (gh-5602)
scikit-image now supports use of Pythran in contributed code. (gh-3226)
Spelling correction: witch -> which.
Mention possible filters in radon_transform -> filtered-back-projection
Fix dtype info in documentation for watershed.
Proofread gallery example for Radon transform.
Use internal function for noise + clarify code in Canny example.
Make more comprehensive ‘see also’ sections in filters.
Specify the release note version instead of the misleading latest.
Remove misleading comment in plot_thresholding.py example.
Fix sphinx layout to make the search engine work with recent sphinx versions.
Draw node IDs in RAG example.
Update sigma_color description in denoise_bilateral.
Update intersphinx fallback inventories + add matplotlib fallback inventory.
Fix numpy deprecation in plot_local_equalize.py.
Rename label variable in plot_regionprops.py to circumvent link issue
in docs.
Avoid duplicate API documentation for ImageViewer, CollectionViewer.
Fix ‘blog_dog’ typo in gaussian docs.
Update reference link documentation in the adjust_sigmoid function.
Fix reference to multiscale_basic_features in TrainableSegmenter.
Slight shape_index docstring modification to specify 2D array.
Add stitching gallery example (gh-5365)
Add draft SKIP3: transition to scikit-image 1.0 (gh-5475)
Mention commit messages in the contribution guidelines. (gh-5504)
Fix and standardize docstrings for blob detection functions. (gh-5547)
Update the User Guide to reflect usage of channel_axis rather than
multichannel. (gh-5554)
Update the user guide to use channel_axis rather than multichannel (gh-5556)
Add hyperlinks to referenced documentation places. (gh-5560)
Update branching instructions to change the location of the pooch repo.
(gh-5565)
Add Notes and References section to the Cascade class docstring. (gh-5568)
Clarify 2D vs nD in skimage.feature.corner docstrings (gh-5569)
Fix math formulas in plot_swirl.py example. (gh-5574)
Update references in texture feature detectors docstrings (gh-5578)
Update mailing list location to discuss.scientific-python.org forum (gh-5951)
DOC: Fix docstring in rescale_intensity() (gh-5964)
Fix slic documentation (gh-5975)
Update docstring for dilation, which is now nD. (gh-5978)
Change stitching gallery example thumbnail (gh-5985)
Add circle and disk to glossary.md (gh-5590)
Update pixel graphs example (gh-5991)
Separate entries that have the same description in glossary.md (gh-5592)
Do not use space before colon in directive name (gh-6002)
util.apply_parallel
skimage.feature.peak_local_max supports now any Minkowski distance.
Fast, non-Cython implementation for skimage.filters.correlate_sparse.
For efficiency, the histogram is now precomputed within
skimage.filters.try_all_threshold.
Faster skimage.filters.find_local_max when given a finite num_peaks.
All filters in the skimage.filters.rank module now release the GIL,
enabling multithreaded use.
skimage.restoration.denoise_tv_bregman and
skimage.restoration.denoise_bilateral now release the GIL, enabling
multithreaded use.
A skimage.color.label2rgb performance regression was addressed.
Improve numerical precision in CircleModel.estimate. (gh-5190)
Add default keyword argument values to
skimage.restoration.denoise_tv_bregman, skimage.measure.block_reduce,
and skimage.filters.threshold_local. (gh-5454)
Make matplotlib an optional dependency (gh-5990)
single precision support in skimage.filters (gh-5354)
Support nD images and labels in label2rgb (gh-5550)
Regionprops table performance refactor (gh-5576)
add regionprops benchmark script (gh-5579)
remove use of apply_along_axes from greycomatrix & greycoprops (gh-5580)
refactor gabor_kernel for efficiency (gh-5582)
remove need for channel_as_last_axis decorator in skimage.filters (gh-5584)
replace use of scipy.ndimage.gaussian_filter with skimage.filters.gaussian
(gh-5872)
add channel_axis argument to quickshift (gh-5987)
add MacOS arm64 wheels (gh-6068)
data.cat
data.chelsea
The level parameter of measure.find_contours is now a keyword
argument, with a default value set to (max(image) - min(image)) / 2.
p_norm argument was added to skimage.feature.peak_local_max
to add support for Minkowski distances.
skimage.transforms.integral_image now promotes floating point inputs to
double precision by default (for accuracy). A new dtype keyword argument
can be used to override this behavior when desired.
Color conversion functions now have a new channel_axis keyword argument
(see New Features section).
SLIC superpixel segmentation outputs may differ from previous versions for
data that was not already scaled to [0, 1] range. There is now an automatic
internal rescaling of the input to [0, 1] so that the compactness
parameter has an effect that is independent of the input image’s scaling.
A bug fix to the phase normalization applied within
skimage.register.phase_cross_correlation may result in a different result
as compared to prior releases. The prior behavior of “unnormalized” cross
correlation is still available by explicitly setting normalization=None.
There is no change to the masked cross-correlation case, which uses a
different algorithm.
skimage.filters.gaussian
Fix Laplacian matrix size bug in skimage.segmentation.random_walker.
Regionprops table (skimage.measure.regionprops_table) dtype bugfix.
Fix skimage.transform.rescale when using a small scale factor.
Fix skimage.measure.label segfault.
Watershed (skimage.segmentation.watershed): consider connectivity when
calculating markers.
Fix skimage.transform.warp output dtype when order=0.
Fix multichannel intensity_image extra_properties in regionprops.
Fix error message for skimage.metric.structural_similarity when image is
too small.
Do not mark image edges in ‘subpixel’ mode of
skimage.segmentation.find_boundaries.
Fix behavior of skimage.exposure.is_low_contrast for boolean inputs.
Fix wrong syntax for the string argument of ValueError in
skimage.metric.structural_similarity .
Fixed NaN issue in skimage.filters.threshold_otsu.
Fix skimage.feature.blob_dog docstring example and normalization.
Fix uint8 overflow in skimage.exposure.adjust_gamma.
Work with pooch 1.5.0 for fetching data (gh-5529).
The offsets attribute of skimage.graph.MCP is now public. (gh-5547)
Fix io.imread behavior with pathlib.Path inputs (gh-5543)
Make scikit-image imports from Pooch, compatible with pooch >= 1.5.0.
(gh-5529)
Fix several broken doctests and restore doctesting on GitHub Actions.
(gh-5505)
Fix broken doctests in skimage.exposure.histogram and
skimage.measure.regionprops_table. (gh-5522)
Rescale image consistently during SLIC superpixel segmentation. (gh-5518)
Correct phase correlation in skimage.register.phase_cross_correlation.
(gh-5461)
Fix hidden attribute ‘offsets’ in skimage.graph.MCP (gh-5551)
fix phase_cross_correlation for 3D with reference masks (gh-5559)
fix return shape of blob_log and blob_dog when no peaks are found (gh-5567)
Fix find contours key error (gh-5577)
Refactor measure.ransac and add warning when the estimated model is not valid
(gh-5583)
Restore integer image rescaling for edge filters (gh-5589)
trainable_segmentation: re-raise in error case (gh-5600)
allow regionprops_table to be called with deprecated property names (gh-5908)
Fix weight calculation in fast mode of non-local means (gh-5923)
fix for #5948: lower boundary 1 for kernel_size in equalize_adapthist
(gh-5949)
convert pathlib.Path to str in imsave (gh-5971)
Fix slic spacing (gh-5974)
Add small regularization to avoid zero-division in richardson_lucy (gh-5976)
Fix benchmark suite (watershed function was moved) (gh-5982)
catch QhullError and return empty array (convex_hull) (gh-6008)
add property getters for all newly deprecated regionprops names (gh-6000)
Fix the estimation of ellipsoid axis lengths in the 3D case (gh-6013)
Fix peak local max segfault (gh-6035)
Avoid circular import errors when EAGER_IMPORT=1 (gh-6042)
remove all use of the deprecated distutils package (gh-6044)
alpha
skimage.color.gray2rgb
skimage.color.gray2rgba
Attempting to warp a boolean image with order > 0 now raises a
ValueError.
When warping or rescaling boolean images, setting anti-aliasing=True will
raise a ValueError.
The bg_label parameter of skimage.color.label2rgb is now 0.
The deprecated filter parameter of skimage.transform.iradon has now
been removed (use filter_name instead).
The deprecated skimage.draw.circle function has been removed (use
skimage.draw.disk instead).
The deprecated skimage.feature.register_translation function has
been removed (use skimage.registration.phase_cross_correlation instead).
The deprecated skimage.feature.masked_register_translation function has
been removed (use skimage.registration.phase_cross_correlation instead).
The deprecated skimage.measure.marching_cubes_classic function has
been removed (use skimage.measure.marching_cubes instead).
The deprecated skimage.measure.marching_cubes_lewiner function has
been removed (use skimage.measure.marching_cubes instead).
The deprecated skimage.segmentation.circle_level_set function has been
removed (use skimage.segmentation.disk_level_set instead).
The deprecated inplace parameter of skimage.morphology.flood_fill
The deprecated skimage.util.pad function has been removed (use
numpy.pad instead).
been removed (use in_place instead).
The default mode in skimage.filters.hessian is now
'reflect'.
The default boundary mode in skimage.filters.sato is now
'reflect'.
The default boundary mode in skimage.measure.profile_line is now
'reflect'.
The default value of preserve_range in
skimage.restoration.denoise_nl_means is now False.
The default value of start_label in skimage.segmentation.slic is now
1.
Ensure that README.txt has write permissions for subsequent imports.
Decorators for helping with the transition between the keyword argument
multichannel and channel_axis.
Add missing import in lch2lab docstring example (gh-5998)
Prefer importing build_py and sdist from setuptools (gh-6007)
Reintroduce skimage.test utility (gh-5909)
Add python 3.10 test runs on GitHub Actions and Appveyor (gh-6027)
Pin sphinx to <4.3 until new sphinx-gallery release is available (gh-6029)
Relax a couple of equality tests causing i686 test failures on cibuildwheel
(gh-6031)
Avoid matplotlib import overhead during ‘import skimage’ (gh-6032)
Update sphinx gallery pin (gh-6034)
Juan Antonio Barragan Noguera
klaussfreire (klaussfreire)
michalkrawczyk (michalkrawczyk)
Sebastian Gonzalez Tirado
serge-sans-paille (serge-sans-paille)
Sebastian Gonzalez Tirado
skimage
.
segmentation
.
chan_vese
skimage
.
segmentation
.
morphological_chan_vese
skimage
.
segmentation
.
morphological_geodesic_active_contour
skimage
.
segmentation
.
slic
image_filled
intensity_image
image_intensity
local_centroid
centroid_local
weighted_centroid
centroid_weighted
weighted_local_centroid
centroid_weighted_local
major_axis_length
axis_major_length
minor_axis_length
axis_minor_length
weighted_moments
moments_weighted
weighted_moments_central
moments_weighted_central
weighted_moments_hu
moments_weighted_hu
weighted_moments_normalized
moments_weighted_normalized
equivalent_diameter
equivalent_diameter_area
============================
============================