Enable chroma mask forgoten

This commit is contained in:
Desmis
2019-05-13 17:51:55 +02:00
parent aa2f68b742
commit 4b91f8bc7d
2 changed files with 4 additions and 3 deletions

View File

@@ -1051,6 +1051,7 @@ void ImProcFunctions::MSRLocal(int sp, int lum, LabImage * bufreti, LabImage * b
// printf("minL=%f maxL=%f\n", minL, maxL);
float fab = 4000.f;//value must be good in most cases
// fab *= (1.f + 0.01f * loc.spots.at(sp).chromaskreti);
#ifdef _OPENMP
#pragma omp parallel for schedule(dynamic,16)
@@ -1148,8 +1149,8 @@ void ImProcFunctions::MSRLocal(int sp, int lum, LabImage * bufreti, LabImage * b
bufreti->L[y][x] += bufmaskorigreti->L[y][x] * modr;
}
bufreti->a[y][x] *= (1.f + bufmaskorigreti->a[y][x] * modr);
bufreti->b[y][x] *= (1.f + bufmaskorigreti->b[y][x] * modr);
bufreti->a[y][x] *= (1.f + bufmaskorigreti->a[y][x] * modr * (1.f + 0.01f * loc.spots.at(sp).chromaskreti));
bufreti->b[y][x] *= (1.f + bufmaskorigreti->b[y][x] * modr * (1.f + 0.01f * loc.spots.at(sp).chromaskreti));
}
}
}