each_channel decorator

Stéfan van der Walt stefan at sun.ac.za
Sun Oct 21 04:32:57 EDT 2012


On Sat, Oct 20, 2012 at 5:36 AM, Tony Yu <tsyu80 at gmail.com> wrote:
> Updated @adapt_rgb: https://gist.github.com/3909400
> I'm inclined to move away from the "one decorator to rule them all"
> approach, and use separate @rgb_channel_filter (or @each_channel, or
> whatever), @lightness_filter, etc.

This should help to preserve to docstring:

http://docs.python.org/library/functools.html#functools.wraps

Stéfan



More information about the scikit-image mailing list