each_channel decorator
Stéfan van der Walt
stefan at sun.ac.za
Tue Oct 16 01:37:34 EDT 2012
On Mon, Oct 15, 2012 at 8:30 PM, Tony Yu <tsyu80 at gmail.com> wrote:
> After my failed @grayscale decorator suggestion (sorry again Johannes for
> all the unnecessary work this caused you), I was thinking it might be nice
> to add an @each_channel decorator. The basic idea is that the decorator
> would check if the input image is RGB, and applies the grayscale function to
> each channel of an RGB image.
Now, here we have a winner :)
Stéfan
More information about the scikit-image
mailing list