Fixed the same Observer for general and Itcwb

This commit is contained in:
U-PCSPECIALIST01\jdesm 2023-02-16 11:10:18 +01:00
parent 8047aded3b
commit d5aae723b8

View File

@ -3764,15 +3764,17 @@ void ColorTemp::tempxy(bool separated, int repref, float **Tx, float **Ty, float
Refxyz[i].Zref = 0.f; Refxyz[i].Zref = 0.f;
} }
if (settings->verbose) { /* if (settings->verbose) {
if (settings->itcwb_stdobserver10 == false) {//I will try to change settings by main if (settings->itcwb_stdobserver10 == false) {//I will try to change settings by main
printf("Use standard observer 2°\n"); printf("Use standard observer 2°\n");
} else { } else {
printf("Use standard observer 10°\n"); printf("Use standard observer 10°\n");
} }
} }
*/
const color_match_type &color_match = (settings->itcwb_stdobserver10 == true) ? cie_colour_match_jd : cie_colour_match_jd2; const color_match_type &color_match = (settings->observer10 == true) ? cie_colour_match_jd : cie_colour_match_jd2;
// const color_match_type &color_match = (settings->itcwb_stdobserver10 == true) ? cie_colour_match_jd : cie_colour_match_jd2;
if (separated) { if (separated) {
const double tempw = Txyz[repref].Tem; const double tempw = Txyz[repref].Tem;