-
Notifications
You must be signed in to change notification settings - Fork 86
Update color_diff.py #61
base: master
Are you sure you want to change the base?
Conversation
Default CIEDE200 changed to use unity 1 in Kl, Kc, Kh without passing as args. delta_e_cie2000_nonunity(color1, color2, Kl, Kc, Kh) proposed as new function to allow for passing in Kl, Kc, Kh in instances which a different weighting factor, or nonunity weighting factors are desired.
I'm wondering if we should retain the old kwarg layout, but emit a deprecation warning so that we're not breaking people without notice. We could completely remove these in a future release. What do you think? |
I think a future release is the way to go. Mark Brown On Monday, March 21, 2016 at 8:57 PM, Greg Taylor wrote:
|
Rolled back delta_e_cie2000 to original with depreciation warning. delta_e_cie2000_update added as reference to know what to expect in a future release.
Are there comments to the suggested edits? Is delta_e_cie2000_nonunity() sufficient in the warning / a good enough name? For the relatively short overhead of duplicate functionality, though with application-specific values people use, should amendments be made? i.e. (Argv[x]=some value) with fabric:linen, cotton, suede, paper:LWC-B72, N-ST58, SC-B65 as examples |
I'm admittedly not actively using the module at this point, so I've got to lean heavily on other people giving this a shot and weighing in. If you are spectating, please hop in and try this PR out! |
The PR I've made is seemingly arbitrary, but in my attempt to port the delta e function to gpu, I've found that if this package can get away from treating LabColor as an object, some significant performance speedups could be realized. More to the point, though slightly off-topic to this PR: it is unclear, and not easy to infer what happens when a lab color is created. Passing in l,a & b creates the color, but the function has to look up values for angle and luminescence. The headers indicate a return of ndarray, when array is used instead. |
Did not mean to close. |
Default CIEDE200 changed to use unity 1 in Kl, Kc, Kh without passing as args.
delta_e_cie2000_nonunity(color1, color2, Kl, Kc, Kh) proposed as new function to allow for passing in Kl, Kc, Kh in instances which a different weighting factor, or nonunity weighting factors are desired.