Subject: CVS commit: pkgsrc/math/py-scikit-image
From: Adam Ciarcinski
Date: 2025-02-11 13:09:56
Message id: 20250211120956.318E5FBE0@cvs.NetBSD.org

Log Message:
py-scikit-image: updated to 0.25.1

scikit-image 0.25.1

Bug Fixes

- Include ``centroid`` in ``__all__`` of the PYI file in ``skimage.measure``
- Improve numerical stability of ``blur_effect``
- Because under-determined fits are unreliable, ``skimage.measure.EllipseModel`` \ 
will now warn and return ``False`` (no fit) when fewer than 5 data points are \ 
provided
- Explicitly upcast ``data`` with dtype ``float16`` to ``float32`` in  \ 
``skimage.segmentation.random_walker``; this fixes passing ``float16`` on NumPy \ 
1.26

Documentation

- Don't use removed ``QuadContourSet.collections`` in gallery example
- Change old import convention in the gallery examples

scikit-image 0.25.0 (2024-12-13)

New Features

- Add the new Gray-Level Co-occurrence Matrix (GLCM) properties  \ 
"mean", "variance", "standard deviation" and \ 
"entropy" to  ``skimage.feature.texture.graycoprops``
- Add the new ``skimage.morphology.footprint_rectangle`` supporting generation \ 
of rectangular or hyper-rectangular footprints in one function

API Changes

- Complete the deprecation of and remove ``skimage.feature.plot_matches``. Use \ 
``skimage.feature.plot_matched_features`` going forward
- Deprecate ``skimage.io.imshow``, ``skimage.io.imshow_collection`` and \ 
``skimage.io.show``. Please use ``matplotlib``, ``napari``, etc. to visualize \ 
images
- Remove deprecated ``skimage.morphology.skeletonize_3d``;  use \ 
``skimage.morphology.skeletonize`` instead
- Deprecate ``skimage.io`` plugin infrastructure
- Switched to using the ``scipy.sparse`` array interface. For more details, see \ 
the note about the new ``scipy.sparse`` array interface \ 
[here](https://docs.scipy.org/doc/scipy/reference/sparse.html)
- Deprecate ``skimage.morphology.rectangle`` in favor of the new function \ 
``skimage.morphology.footprint_rectangle``
- Deprecate ``skimage.morphology.cube`` in favor of the new function \ 
``skimage.morphology.footprint_rectangle``
- Deprecate ``skimage.morphology.square`` in favor of the new function \ 
``skimage.morphology.footprint_rectangle``

Enhancements

- Improve numerical stability of ``skimage.morphology.local_minima`` for \ 
extremely small floats
- Allow passing a sequence of colors to the parameter ``matches_color`` in \ 
``skimage.feature.plot_matched_features``
- Make sure that ``skimage.feature.plot_matched_features`` uses the same random \ 
colors, if ``matches_color`` isn't provided  explicitly

Performance

- ``skimage.feature.peak_local_max`` will now skip unnecessary distance \ 
computations in the case of ``min_distance=1``. This results in performance \ 
improvements to functions like ``skimage.feature.blob_dog``, \ 
``skimage.feature.blob_log``,  ``skimage.feature.blob_doh`` and \ 
``skimage.feature.corner_peaks`` that call  ``peak_local_max`` internally
- In ``skimage.featurepeak_local_max``, skip unnecessary check for cases where  \ 
``min_distance > 1`` is passed

Bug Fixes

- Ensure that ``skimage.morphology.remove_objects_by_distance`` doesn't fail  if \ 
the given integer dtype cannot be safely cast to the architecture specific size \ 
of ``intp``, e.g. on i386 architectures
- Fix degeneracy in ``skimage.draw.ellipsoid_stats`` when all semi-axes have the \ 
same length
- Prevent ``skimage.morphology.thin`` from accidentally  modifying the input \ 
image in case it is of dtype uint8
- Fix numerical precision error in ``skimage.measure.ransac``. In some cases, \ 
``ransac`` was stopping at the first iteration
- Fix numerical precision error in ``skimage.measure.ransac``;  very small \ 
probabilities lead to -0 number of max trials
- Ensure that ``RegionProperties`` objects returned by \ 
``skimage.measure.regionprops`` can be deserialized with pickle
- Fix edge case where setting ``watershed_lines=True`` in \ 
``skimage.segmentation.watershed`` resulted in an incorrect solution
- Fix the behavior of ``skimage.segmentation.watershed`` when the markers don't \ 
align with local minima by making sure every marker is evaluated before \ 
successive pixels
- Fix dtype promotion in ``skimage.segmentation.join_segmentations`` if \ 
``numpy.uint`` is used with NumPy<2

Documentation

- In ``skimage.morphology.skeletonize``, clarify the expected image dtypes and \ 
how objects of different intensities are handled
- Fix example section in docstring of ``skimage.feature.graycomatrix``
- Use conda-forge consistently in instructions for setting up the development \ 
environment
- Use new ``CITATION.cff`` instead of ``CITATION.bib``
- Use correct ``spin test --coverage`` in contribution guide
- Tweak advice to new developers; remove AI warning
- Rework installation instructions
- Improve the description of the ``image`` parameter in \ 
``skimage.restoration.richardson_lucy``
- Account for empty arrays when counting segments per contour level in gallery \ 
example "Segment human cells (in mitosis)"
- Fix typo in morphology doc
- Change type description of parameter ``radius`` in  \ 
``skimage.morphology.ball`` from ``int`` to ``float``

Files:
RevisionActionfile
1.25modifypkgsrc/math/py-scikit-image/Makefile
1.8modifypkgsrc/math/py-scikit-image/PLIST
1.11modifypkgsrc/math/py-scikit-image/distinfo