SRL Archive - News and General

xyz color tolerance


wantonman

2012-02-22 18:11:51

Anyway to find the XYZ tolerance? :google:


do i first find hsl the color to xyz or
just use regular rgb and then just use that tolerance?



i know about modifier value but aca seems to not have that support yet.. i bet there is a aca v3


hsl is great and aca does great job on giving you hsl tol and hue/sat modifiers but none for xyz

masterBB

2012-02-22 18:19:48

xyz? The only CTS that uses XYZ is CTS3. But even there we calculate it to CIE Lab….

wantonman

2012-02-22 18:34:24

well like in cts0 , cts1 , cts2 ; aca provides tolerance for each but i cannot get the right tol for xyz… i am aware for a proper xyz you need the cts3 modifier value and the color tolerance but im having trouble getting those as aca doesnt seem to provide these…


i googled this cie lab… tell me more of this if it might answere my question… google just admits some software iono about

masterBB

2012-02-22 18:41:30

It doesn't exist, but I believe someone was working on it. You could try it with trial and error. The cts3 modifier works like this: "Ceil(Sqr(Tol*CTS3Modifier));" You can achieve the same with editing only one of them. L*a*b are compared against each other with that tolerance.

Where:
L = L1 - L2
A = A1 - A2
Bb = B1 - B2
(L*L + A*A + bB*Bb) <= i.Tol;

edit: Tell you more? uhm, any change if you start reading at line 256 you will understand it? https://github.com/MerlijnWajer/Simba/blob/master/Units/MMLCore/finder.pas

wantonman

2012-02-22 18:54:10

it seems mildly complex thought it looks like colortoxyz function… i have read all of the cts tuts on the forums

masterBB

2012-02-22 19:05:58

From: wantonman
it seems mildly complex thought it looks like colortoxyz function… i have read all of the cts tuts on the forums


I'm afraid you won't find that many about it. I still have to add it to my CTS tutorial. I learned all I know from reading the MMLCore/simba source and stuff I already know about color finding. Well my last try for I go to sleep ;)

Random image from google:

As you can see the L parameter is the lightness of the color. A and B are the amount of red,green,blue and yellow. The rest you have to find out yourself, or wait a week when I will update my tut again.

footballjds

2012-02-22 19:07:35

From: masterBB
I'm afraid you won't find that many about it. I still have to add it to my CTS tutorial. I learned all I know from reading the MMLCore/simba source and stuff I already know about color finding. Well my last try for I go to sleep ;)

Random image from google:

As you can see the L parameter is the lightness of the color. A and B are the amount of red,green,blue and yellow. The rest you have to find out yourself, or wait a week when I will update my tut again.


update that tut and pm me when you do!