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.
On Tue, Oct 16, 2012 at 7:59 PM, Steven Silvester < steven.silvester@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
On Tue, Oct 16, 2012 at 4:59 PM, Steven Silvester <steven.silvester@gmail.com> wrote:
I would suggest the following instead: Convert to LAB Perform transform on lightness channel Convert back to RGB
That seems like a sound approach to me. Tony, Andreas?
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.
By the way, thanks for that PR--now that 0.7.2 is out the door, I reviewed it. Stéfan
participants (3)
-
Steven Silvester
-
Stéfan van der Walt
-
Tony Yu