clean and comment code

This commit is contained in:
Desmis
2018-04-29 18:23:00 +02:00
parent 66cb04ac75
commit ccf642bc6c
4 changed files with 7 additions and 9 deletions

View File

@@ -852,6 +852,8 @@ void Crop::update(int todo)
int cw = baseCrop->getWidth();
int ch = baseCrop->getHeight();
Image16* readyImg0 = NULL;
// I used Image16 because Imagefloat does not work
double ga0, ga1, ga2, ga3, ga4, ga5, ga6;
int mul = -5;
double gga = 2.4, ssl = 12.92;

View File

@@ -512,7 +512,7 @@ void ImProcCoordinator::updatePreviewImage(int todo, Crop* cropCall)
int ch = oprevi->getHeight();
// put gamma TRC to 1
Image16* readyImg0 = NULL;
// I used Image16 because Imagefloat does not work
double ga0, ga1, ga2, ga3, ga4, ga5, ga6;
int mul = -5;
double gga = 2.4, ssl = 12.92;

View File

@@ -426,16 +426,13 @@ Imagefloat* ImProcFunctions::lab2rgbOut(LabImage* lab, int cx, int cy, int cw, i
return image;
}
// I don't know why, but with Imagefloat process does not work...It is probably due to my bad skill !
Image16* ImProcFunctions::workingtrc(Imagefloat* working, int cw, int ch, int mul, Glib::ustring profi, double gampos, double slpos, double &ga0, double &ga1, double &ga2, double &ga3, double &ga4, double &ga5, double &ga6)
{
TMatrix wprof;
if (true) {
wprof = ICCStore::getInstance()->workingSpaceMatrix(params->icm.working);
} else {
wprof = ICCStore::getInstance()->workingSpaceMatrix("ProPhoto");
profi = "ProPhoto";
}
double dx = Color::D50x;
double dz = Color::D50z;
@@ -473,7 +470,6 @@ Image16* ImProcFunctions::workingtrc(Imagefloat* working, int cw, int ch, int mu
pwr = gampos;
gampos = 1. / gampos;
five = -mul;
// if(ts < 2.) five=-4;
}
// int select_temp = 1; //5003K
@@ -593,7 +589,7 @@ Image16* ImProcFunctions::workingtrc(Imagefloat* working, int cw, int ch, int mu
ga2 = g_a[4] / (1.0 + g_a[4]);
ga3 = 1. / slpos;
ga5 = 0.0;
printf("ga0=%f ga1=%f ga2=%f ga3=%f ga4=%f\n", ga0, ga1, ga2, ga3, ga4);
// printf("ga0=%f ga1=%f ga2=%f ga3=%f ga4=%f\n", ga0, ga1, ga2, ga3, ga4);
cmsCIExyY xyD;

View File

@@ -908,7 +908,7 @@ private:
int ch = baseImg->getHeight();
// put gamma TRC to 1
Image16* readyImg0 = NULL;
//Imagefloat does not work
double ga0, ga1, ga2, ga3, ga4, ga5, ga6;
int mul = -5;
double gga = 2.4, ssl = 12.92;