Lines Matching full:pmod
61 cmsFloat64Number compute_n(cmsCIECAM02* pMod)
63 return (pMod -> Yb / pMod -> adoptedWhite.XYZ[1]);
67 cmsFloat64Number compute_z(cmsCIECAM02* pMod)
69 return (1.48 + pow(pMod -> n, 0.5));
73 cmsFloat64Number computeNbb(cmsCIECAM02* pMod)
75 return (0.725 * pow((1.0 / pMod -> n), 0.2));
79 cmsFloat64Number computeFL(cmsCIECAM02* pMod)
83 k = 1.0 / ((5.0 * pMod->LA) + 1.0);
84 FL = 0.2 * pow(k, 4.0) * (5.0 * pMod->LA) + 0.1 *
86 (pow((5.0 * pMod->LA), (1.0 / 3.0)));
92 cmsFloat64Number computeD(cmsCIECAM02* pMod)
96 D = pMod->F - (1.0/3.6)*(exp(((-pMod ->LA-42) / 92.0)));
113 CAM02COLOR ChromaticAdaptation(CAM02COLOR clr, cmsCIECAM02* pMod)
118 clr.RGBc[i] = ((pMod -> adoptedWhite.XYZ[1] *
119 (pMod->D / pMod -> adoptedWhite.RGB[i])) +
120 (1.0 - pMod->D)) * clr.RGB[i];
150 CAM02COLOR NonlinearCompression(CAM02COLOR clr, cmsCIECAM02* pMod)
158 temp = pow((-1.0 * pMod->FL * clr.RGBp[i] / 100.0), 0.42);
162 temp = pow((pMod->FL * clr.RGBp[i] / 100.0), 0.42);
168 (clr.RGBpa[2] / 20.0)) - 0.305) * pMod->Nbb;
174 CAM02COLOR ComputeCorrelates(CAM02COLOR clr, cmsCIECAM02* pMod)
199 e = ((12500.0 / 13.0) * pMod->Nc * pMod->Ncb) *
223 clr.J = 100.0 * pow((clr.A / pMod->adoptedWhite.A),
224 (pMod->c * pMod->z));
226 clr.Q = (4.0 / pMod->c) * pow((clr.J / 100.0), 0.5) *
227 (pMod->adoptedWhite.A + 4.0) * pow(pMod->FL, 0.25);
234 pow((1.64 - pow(0.29, pMod->n)), 0.73);
236 clr.M = clr.C * pow(pMod->FL, 0.25);
244 CAM02COLOR InverseCorrelates(CAM02COLOR clr, cmsCIECAM02* pMod)
251 (pow((1.64 - pow(0.29, pMod->n)), 0.73)))),
253 e = ((12500.0 / 13.0) * pMod->Nc * pMod->Ncb) *
256 clr.A = pMod->adoptedWhite.A * pow(
258 (1.0 / (pMod->c * pMod->z)));
261 p2 = (clr.A / pMod->Nbb) + 0.305;
297 CAM02COLOR InverseNonlinearity(CAM02COLOR clr, cmsCIECAM02* pMod)
305 clr.RGBp[i] = c1 * (100.0 / pMod->FL) *
337 CAM02COLOR InverseChromaticAdaptation(CAM02COLOR clr, cmsCIECAM02* pMod)
342 ((pMod->adoptedWhite.XYZ[1] * pMod->D / pMod->adoptedWhite.RGB[i]) + 1.0 - pMod->D);