Some bugfix.
This commit is contained in:
@@ -280,7 +280,7 @@ Image8* ImProcFunctions::lab2rgb (LabImage* lab, int cx, int cy, int cw, int ch,
|
||||
* If a custom gamma profile can be created, divide by 327.68, convert to xyz and apply the custom gamma transform
|
||||
* otherwise divide by 327.68, convert to xyz and apply the sRGB transform, before converting with gamma2curve
|
||||
*/
|
||||
Image16* ImProcFunctions::lab2rgb16 (LabImage* lab, int cx, int cy, int cw, int ch, const procparams::ColorManagementParams &icm, bool bw, double *ga)
|
||||
Image16* ImProcFunctions::lab2rgb16 (LabImage* lab, int cx, int cy, int cw, int ch, const procparams::ColorManagementParams &icm, bool bw, Color::GammaValues *ga)
|
||||
{
|
||||
|
||||
//gamutmap(lab);
|
||||
@@ -305,9 +305,9 @@ Image16* ImProcFunctions::lab2rgb16 (LabImage* lab, int cx, int cy, int cw, int
|
||||
|
||||
cmsHPROFILE oprof = NULL;
|
||||
if (ga) {
|
||||
iccStore->getGammaArray(icm, ga);
|
||||
oprof = iccStore->createGammaProfile(icm, ga);
|
||||
printf("iccStore->createGammaProfile(icm, ga);\n");
|
||||
iccStore->getGammaArray(icm, *ga);
|
||||
oprof = iccStore->createGammaProfile(icm, *ga);
|
||||
printf("iccStore->createGammaProfile(icm, *ga);\n");
|
||||
} else {
|
||||
oprof = iccStore->getProfile (icm.output);
|
||||
printf("iccStore->getProfile (%s);\n", icm.output.c_str());
|
||||
|
||||
Reference in New Issue
Block a user