Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync cuCIM API with scikit-image 0.21 #573

Merged
merged 16 commits into from Jul 11, 2023

Conversation

grlee77
Copy link
Contributor

@grlee77 grlee77 commented Jun 13, 2023

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
Copy link
Member

jakirkham commented Jul 6, 2023

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
Copy link
Contributor

@gigony gigony left a comment

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
Copy link
Contributor Author

grlee77 commented Jul 11, 2023

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
Copy link
Contributor Author

grlee77 commented Jul 11, 2023

/merge

@rapids-bot rapids-bot bot merged commit 72cc303 into rapidsai:branch-23.08 Jul 11, 2023
21 checks passed
@jakirkham
Copy link
Member

Thank you both! 🙏

rapids-bot bot pushed a commit that referenced this pull request Jul 17, 2023
Follow up to PR ( #573 )

This allows `scikit-image` version `0.21.0` to be installed alongside `cucim`.

Authors:
  - https://github.com/jakirkham

Approvers:
  - Ray Douglass (https://github.com/raydouglass)
  - Gregory Lee (https://github.com/grlee77)

URL: #580
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.

None yet

3 participants