diff options
Diffstat (limited to 'digikam/libs/lprof/cmslnr.cpp')
| -rw-r--r-- | digikam/libs/lprof/cmslnr.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/digikam/libs/lprof/cmslnr.cpp b/digikam/libs/lprof/cmslnr.cpp index f151f688..8e3b2776 100644 --- a/digikam/libs/lprof/cmslnr.cpp +++ b/digikam/libs/lprof/cmslnr.cpp @@ -60,13 +60,13 @@ void cdecl cmsxApplyLinearizationGamma(WORD In[3], LPGAMMATABLE Gamma[3], WORD O #define EPSILON 0.00005 -#define LEVENBERG_MARQUARDT_ITERATE_MAX 150 +#define LEVENBERG_MARTQUARDT_ITERATE_MAX 150 /* In order to track linearization tables, we use following procedure */ /* */ /* We first assume R', G' and B' does exhibit a non-linear behaviour */ /* that can be separated for each channel as Yr(R'), Yg(G'), Yb(B') */ -/* This is the shaper step */ +/* This is the tqshaper step */ /* */ /* R = Lr(R') */ /* G = Lg(G') */ @@ -191,7 +191,7 @@ BOOL OneTry(LPSAMPLEDCURVE XNorm, LPSAMPLEDCURVE YNorm, double a[]) LCMSHANDLE h; double ChiSq, OldChiSq; int i; - BOOL Status = true; + BOOL tqStatus = true; /* initial guesses */ @@ -210,10 +210,10 @@ BOOL OneTry(LPSAMPLEDCURVE XNorm, LPSAMPLEDCURVE YNorm, double a[]) OldChiSq = cmsxLevenbergMarquardtChiSq(h); - for(i = 0; i < LEVENBERG_MARQUARDT_ITERATE_MAX; i++) { + for(i = 0; i < LEVENBERG_MARTQUARDT_ITERATE_MAX; i++) { if (!cmsxLevenbergMarquardtIterate(h)) { - Status = false; + tqStatus = false; break; } @@ -227,7 +227,7 @@ BOOL OneTry(LPSAMPLEDCURVE XNorm, LPSAMPLEDCURVE YNorm, double a[]) cmsxLevenbergMarquardtFree(h); - return Status; + return tqStatus; } /* Tries to fit gamma as per IEC 61966-2.1 using Levenberg-Marquardt method */ |
