"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "skimage/restoration/_cycle_spin.py" between
scikit-image-0.19.2.tar.gz and scikit-image-0.19.3.tar.gz

About: scikit-image is a collection of algorithms for image processing in Python.

_cycle_spin.py  (scikit-image-0.19.2):_cycle_spin.py  (scikit-image-0.19.3)
skipping to change at line 51 skipping to change at line 51
raise ValueError( raise ValueError(
"Multichannel cycle spinning should not have shifts along the " "Multichannel cycle spinning should not have shifts along the "
"last axis.") "last axis.")
return product(*[range(0, s + 1, t) for return product(*[range(0, s + 1, t) for
s, t in zip(max_shifts, shift_steps)]) s, t in zip(max_shifts, shift_steps)])
@utils.channel_as_last_axis() @utils.channel_as_last_axis()
@utils.deprecate_multichannel_kwarg(multichannel_position=5) @utils.deprecate_multichannel_kwarg(multichannel_position=5)
def cycle_spin(x, func, max_shifts, shift_steps=1, num_workers=None, def cycle_spin(x, func, max_shifts, shift_steps=1, num_workers=None,
multichannel=False, func_kw={}, *, channel_axis=-1): multichannel=False, func_kw={}, *, channel_axis=None):
"""Cycle spinning (repeatedly apply func to shifted versions of x). """Cycle spinning (repeatedly apply func to shifted versions of x).
Parameters Parameters
---------- ----------
x : array-like x : array-like
Data for input to ``func``. Data for input to ``func``.
func : function func : function
A function to apply to circularly shifted versions of ``x``. Should A function to apply to circularly shifted versions of ``x``. Should
take ``x`` as its first argument. Any additional arguments can be take ``x`` as its first argument. Any additional arguments can be
supplied via ``func_kw``. supplied via ``func_kw``.
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)