each_channel decorator
Schönberger Johannes
hannesschoenberger at gmail.com
Sat Oct 20 02:13:08 EDT 2012
Hm, I get the feeling that this decorator gets too complex and "magic"… Is this really a standard use case? If someone really wants to apply a filter to the luminance channel of an image, why not let them use ***2lab function?
Johannes Schönberger
Am 19.10.2012 um 23:40 schrieb Stéfan van der Walt <stefan at sun.ac.za>:
> On Fri, Oct 19, 2012 at 2:31 PM, Tony Yu <tsyu80 at gmail.com> wrote:
>> I agree that documenting the extra filter parameter could be problematic. I
>> guess that the decorator could inject that into the filter's docstring, but
>> that's probably too magical. We could make it a hidden parameter and provide
>> utility functions that just change the default behavior.
>
> I'd prefer for the parameter to be visible and documented for each
> function that chooses to use it. I think we should just make
> application to each individual layer the default, since that's the
> most obvious generalization to RGB.
>
> Stéfan
>
> --
>
>
More information about the scikit-image
mailing list