Skip to content

Sync cuCIM API with scikit-image 0.21 - #573

Merged
rapids-bot[bot] merged 16 commits into
rapidsai:branch-23.08from
grlee77:skimage021-update
Jul 11, 2023
Merged

rapids-bot[bot] merged 16 commits into
rapidsai:branch-23.08from
grlee77:skimage021-update

Conversation

@grlee77

@grlee77 grlee77 commented Jun 13, 2023

Copy link
Copy Markdown
Contributor

Description

This MR ports several recent changes implemented upstream in scikit-image 0.21rc0. Some are just minor refactoring or documentation fixes, but I have commented on the more significant changes below so we can reuse that for the release note.

If preferred, I can split the items below into separate small PRs.

API Changes / Deprecations

  • The random_state argument of medial_axis and unsupervised_wiener is now deprecated and will be removed in the future. The new argument name, seed, should be used instead.

  • The formerly private function _invariant_denoise has been renamed denoise_invariant and is now part of the public cucim.skimage.restoration API.

  • The existing function cucim.skimage.color.get_xyz_coords has been renamed cucim.skimage.color.xyz_tristimulus_values. The former function name is deprecated and will be removed in the future.

Enhancements

  • A new return_mapping option was added to join_segmentations. This provides an additional output with a mapping between the labels in the joined segmentation and the original ones.

  • Added support for y-axis shear to the 2D AffineTransform

Backwards Incompatible Changes

  • A bug fix to the energy calculation in chan_vese may result in different output from previous versions.

Bug Fixes

@grlee77 grlee77 added breaking Introduces a breaking change bug Something isn't working improvement Improves an existing functionality labels Jun 13, 2023
@grlee77 grlee77 added this to the v23.08.00 milestone Jun 13, 2023
@grlee77
grlee77 requested a review from a team as a code owner June 13, 2023 16:07
@grlee77 grlee77 removed the bug Something isn't working label Jun 13, 2023
jakirkham and others added 2 commits June 20, 2023 13:56
@jakirkham

jakirkham commented Jul 6, 2023 •

Copy link
Copy Markdown
Member

Thanks Greg! 🙏

Does this depend on scikit-image 0.21.0 packages ( conda-forge/scikit-image-feedstock#103 )?

Edit: Rerunning CI now that those packages are out

@jakirkham jakirkham mentioned this pull request Jul 7, 2023

@gigony gigony left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @grlee77 This change looks good to me!

@grlee77

grlee77 commented Jul 11, 2023

Copy link
Copy Markdown
Contributor Author

Does this depend on scikit-image 0.21.0 packages ( conda-forge/scikit-image-feedstock#103 )?

No, it should still work on older scikit-image as currently pinned

@grlee77

grlee77 commented Jul 11, 2023

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit 72cc303 into rapidsai:branch-23.08 Jul 11, 2023
@jakirkham

Copy link
Copy Markdown
Member

Thank you both! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Introduces a breaking change improvement Improves an existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants