each_channel decorator

Tony Yu tsyu80 at gmail.com
Tue Oct 16 20:11:10 EDT 2012


On Tue, Oct 16, 2012 at 7:59 PM, Steven Silvester <
steven.silvester at gmail.com> wrote:

> I would suggest the following instead:
> Convert to LAB
> Perform transform on lightness channel
> Convert back to RGB
>
> Because, red, green, and blue are not really independent "channels" to the
> human eye.  I used this method on the adapthist pull request when handling
> RGB images.
>

I was originally thinking the same as Stéfan (i.e. operating on each RGB
channel and re-assembling), but I like the idea of operating on the
lightness channel.

(Sorry your adapthist PR has sat unreviewed for so long)

-Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20121016/2f321a48/attachment.html>


More information about the scikit-image mailing list