You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a channel_axis argument to functions in the skimage.color module (#5462)
* TST: channel_axis tests for rgba2rgb
* Add channel_axis kwarg to rgb2hsv and hsv2rgb
TST: test rgb2hsv and hsv2rgb with variable channel_axis
* use existing channel_as_last_axis decorator for hsv2rgb and rgb2hsv
* add channel_axis to rgb2xyz, xyz2rgb
add channel_axis to rgb2rgbcie, rgbcie2rgb
add channel_axis to gray2rgb, gray2rgba, rgb2gray, rgba2gray
* add channel_axis to rgb2luv, luv2rgb, xyz2luv, luv2xyz
add channel_axis to rgb2lab, lab2rgb, xyz2lab, lab2xyz
* add channel_axis to combine_stains, separate_stains, rgb2hed, hed2rgb
* add channel_axis support to remaining functions in colorconv.py
* support user-specified channel_axis for label2rgb
* support channel_axis for deltaE_*
* add channel_axis option to adapt_rgb decorator, each_channel and hsv_value
* support use of channel_axis in functions wrapped by adapt_rgb
support channel_axis for hsv_value and each_channel decorators
* DOC: update docstrings to describe channel_axis
add channel_axis support to convert_colorspace
* BUG: fix label2rgb when an RGB image is provided and channel_axis != -1
* Revert "support use of channel_axis in functions wrapped by adapt_rgb"
This reverts commit 8063049.
* Revert "add channel_axis option to adapt_rgb decorator, each_channel and hsv_value"
This reverts commit 3d82e2c.
* update shape description in labl2rgb docstring
* Apply suggestions from code review
Co-authored-by: Marianne Corvellec <marianne.corvellec@ens-lyon.org>
* switch from ValueError to np.AxisError for invalid axis in rgba2rgb
* raise TypeError on non-integer axis
* TST: test additional negative channel_axis values
Co-authored-by: Riadh Fezzani <rfezzani@gmail.com>
* STYLE: rename _reshape_nd to reshape_nd
* move identity helper to skimage._shared.utils
Co-authored-by: Marianne Corvellec <marianne.corvellec@ens-lyon.org>
Co-authored-by: Riadh Fezzani <rfezzani@gmail.com>
0 commit comments