Skip to content

Commit 1e81ea2

Browse files
committed
CIExy diagram step 5
1 parent 3932ba6 commit 1e81ea2

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

rtengine/improccoordinator.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,8 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
15691569

15701570
//Illuminant
15711571
// float Wx, Wz = 1.f;
1572-
float w_x, w_y = 0.3f;
1572+
float w_x = 0.3f;
1573+
float w_y = 0.3f;
15731574
if(ill == 2) {
15741575
// Wx = 0.964295676f;
15751576
// Wz = 0.825104603f;
@@ -1648,10 +1649,8 @@ void ImProcCoordinator::updatePreviewImage(int todo, bool panningRelatedChange)
16481649
locallListener->refChanged2(huerefp, chromarefp, lumarefp, fabrefp, params->locallab.selspot);
16491650
locallListener->minmaxChanged(locallretiminmax, params->locallab.selspot);
16501651
locallListener->maxcam(maxicamp, autocam, params->locallab.selspot);
1651-
if(params->locallab.spots.at(sp).trccie) {
1652-
// locallListener->primlocChanged(redxloc[sp], redyloc[sp], grexloc[sp], greyloc[sp], bluxloc[sp], bluyloc[sp]);
1653-
locallListener->iprimlocChanged(redxloc[sp], redyloc[sp], grexloc[sp], greyloc[sp], bluxloc[sp], bluyloc[sp], wxloc[sp], wyloc[sp]);
1654-
}
1652+
// locallListener->primlocChanged(redxloc[sp], redyloc[sp], grexloc[sp], greyloc[sp], bluxloc[sp], bluyloc[sp]);
1653+
locallListener->iprimlocChanged(redxloc[sp], redyloc[sp], grexloc[sp], greyloc[sp], bluxloc[sp], bluyloc[sp], wxloc[sp], wyloc[sp]);
16551654
}
16561655
}
16571656

rtengine/iplocallab.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20012,7 +20012,7 @@ void ImProcFunctions::Lab_Local(
2001220012
params->locallab.spots.at(sp).catMethod;
2001320013
int locprim = 1;
2001420014
workingtrc(tmpImage, tmpImage, bfw, bfh, -5, prof, 2.4, 12.92310, 0, ill, 0, 0, rdx, rdy, grx, gry, blx, bly, dummy, true, false, false, false);
20015-
workingtrc(tmpImage, tmpImage, bfw, bfh, typ, prof, gamtone, slotone, catx, ill, prim, locprim, rdx, rdy, grx, gry, blx, bly, dummy, false, true, true, true);//be careful no gamut control
20015+
workingtrc(tmpImage, tmpImage, bfw, bfh, typ, prof, gamtone, slotone, catx, ill, prim, locprim, rdx, rdy, grx, gry, blx, bly, dummy, false, true, true, true);//with gamut control
2001620016

2001720017
rgb2lab(*tmpImage, *bufexpfin, params->icm.workingProfile);
2001820018

rtgui/locallabtools2.cc

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9697,15 +9697,17 @@ void Locallabcie::normcieChanged()
96979697
void Locallabcie::trccieChanged()
96989698
{
96999699
const int mode = complexity->get_active_row_number();
9700-
//gridFramecie->set_sensitive(false);
97019700
if (trccie->get_active()) {
97029701
wprimBox->set_sensitive(false);
97039702
catBox->set_sensitive(false);
97049703
redlFrame->set_sensitive(false);
9704+
gridFramecie->set_sensitive(false);
97059705

97069706
if (mode == Expert) {
97079707
wprimBox->set_sensitive(true);
97089708
catBox->set_sensitive(true);
9709+
gridFramecie->set_sensitive(true);
9710+
97099711
if (primMethod->get_active_row_number() == 8) {
97109712
redlFrame->set_sensitive(true);
97119713
} else {
@@ -9717,8 +9719,10 @@ void Locallabcie::trccieChanged()
97179719
wprimBox->set_sensitive(false);
97189720
catBox->set_sensitive(false);
97199721
redlFrame->set_sensitive(false);
9722+
gridFramecie->set_sensitive(false);
97209723
} else {
97219724
redlFrame->set_sensitive(false);
9725+
gridFramecie->set_sensitive(false);
97229726
}
97239727
}
97249728

@@ -10324,13 +10328,13 @@ void Locallabcie::updateGUIToMode(const modeType new_type)
1032410328
wprimBox->set_sensitive(false);
1032510329
catBox->set_sensitive(false);
1032610330
redlFrame->set_sensitive(false);
10327-
// gridFramecie->set_sensitive(false);
10331+
gridFramecie->set_sensitive(false);
1032810332

1032910333
} else {
1033010334
wprimBox->set_sensitive(false);
1033110335
catBox->set_sensitive(false);
1033210336
redlFrame->set_sensitive(false);
10333-
// gridFramecie->set_sensitive(false);
10337+
gridFramecie->set_sensitive(false);
1033410338

1033510339
}
1033610340

@@ -10411,6 +10415,7 @@ void Locallabcie::updateGUIToMode(const modeType new_type)
1041110415
comprcieth->show();
1041210416
comprcieauto->show();
1041310417
comprBox->show();
10418+
gridFramecie->set_sensitive(false);
1041410419

1041510420
if (trccie->get_active()) {
1041610421
wprimBox->set_sensitive(false);
@@ -10561,12 +10566,15 @@ void Locallabcie::updateGUIToMode(const modeType new_type)
1056110566
wprimBox->set_sensitive(true);
1056210567
catBox->set_sensitive(true);
1056310568
redlFrame->set_sensitive(true);
10569+
gridFramecie->set_sensitive(true);
10570+
1056410571
} else {
1056510572
wprimBox->set_sensitive(true);
1056610573
catBox->set_sensitive(true);
1056710574
redlFrame->set_sensitive(true);
10575+
gridFramecie->set_sensitive(false);
10576+
1056810577
}
10569-
//gridFramecie->set_sensitive(false);
1057010578

1057110579
if (enacieMask->get_active()) {
1057210580
maskusablecie->show();

0 commit comments

Comments
 (0)