-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add a channel_axis argument to functions in the skimage.color module #5462
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
51b9dcb
TST: channel_axis tests for rgba2rgb
grlee77 4e73211
Add channel_axis kwarg to rgb2hsv and hsv2rgb
grlee77 9996eb1
use existing channel_as_last_axis decorator for hsv2rgb and rgb2hsv
grlee77 954371e
add channel_axis to rgb2xyz, xyz2rgb
grlee77 9f76f7c
add channel_axis to rgb2luv, luv2rgb, xyz2luv, luv2xyz
grlee77 ec4ea97
add channel_axis to combine_stains, separate_stains, rgb2hed, hed2rgb
grlee77 31ea1ed
add channel_axis support to remaining functions in colorconv.py
grlee77 54ff440
support user-specified channel_axis for label2rgb
grlee77 37fd7ff
support channel_axis for deltaE_*
grlee77 3d82e2c
add channel_axis option to adapt_rgb decorator, each_channel and hsv_…
grlee77 8063049
support use of channel_axis in functions wrapped by adapt_rgb
grlee77 a3d456e
DOC: update docstrings to describe channel_axis
grlee77 bb21a4f
BUG: fix label2rgb when an RGB image is provided and channel_axis != -1
grlee77 f0184fd
pep8 fixes
grlee77 c72a767
pep8 fixes
grlee77 c3c9cc9
Merge remote-tracking branch 'upstream/main' into color-channel_axis
grlee77 501d929
Revert "support use of channel_axis in functions wrapped by adapt_rgb"
grlee77 287150e
Revert "add channel_axis option to adapt_rgb decorator, each_channel …
grlee77 a40d108
update shape description in labl2rgb docstring
grlee77 7f0f3a2
Merge remote-tracking branch 'upstream/main' into color-channel_axis
grlee77 0155d1b
Apply suggestions from code review
grlee77 444284d
switch from ValueError to np.AxisError for invalid axis in rgba2rgb
grlee77 e16510f
raise TypeError on non-integer axis
grlee77 5abb68e
TST: test additional negative channel_axis values
grlee77 03a8650
STYLE: rename _reshape_nd to reshape_nd
grlee77 8b504a7
move identity helper to skimage._shared.utils
grlee77 bfe1cd1
Merge remote-tracking branch 'upstream/main' into color-channel_axis
grlee77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
This file contains hidden or bidirectional Un
9547
icode 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.