|
From: sfeam <sf...@us...> - 2017-08-18 04:07:12
|
On Thursday, 17 August 2017 13:54:44 Dima Kogan wrote: > Ethan A Merritt <sf...@us...> writes: > > > I agree that it makes no sense to apply the palette range (cbrange) > > to rgb data. > > So yes, cb2gray() should not be used for RGB data components. > > Let's plan to replace it in 5.3 with a new routine rgb2gray(), > > exact behaviour to be discussed. > > > > OK, that sounds like a plan. In the meantime I'm going to apply the > attached patch to my own builds. This detaches the rgb colors from the > palette entirely, both for autoscaling and for rendering. Works OK in > initial testing. [patch snipped] Looks good to me. I've applied it to 5.3 cvs. Ethan |