Local adjustments - improvment Dehaze with black (#6860)

* Local Dehaze black

* Enable black

* Change threshold black - publish_pre_dev_labels ladehazeblack
This commit is contained in:
Desmis
2023-10-12 06:59:33 +02:00
committed by GitHub
parent dac3dcf664
commit d276a56b10
12 changed files with 78 additions and 6 deletions

View File

@@ -454,7 +454,7 @@ void ImProcFunctions::dehaze(Imagefloat *img, const DehazeParams &dehazeParams)
}
}
void ImProcFunctions::dehazeloc(Imagefloat *img, const DehazeParams &dehazeParams)
void ImProcFunctions::dehazeloc(Imagefloat *img, const DehazeParams &dehazeParams, int sk, int sp)
{
//J.Desmis 12 2019 - this version derived from ART, is slower than the main from maximum 10% - probably use of SSE
//Probably Ingo could solved this problem in some times
@@ -476,6 +476,13 @@ void ImProcFunctions::dehazeloc(Imagefloat *img, const DehazeParams &dehazeParam
float ambient[3];
float maxDistance = 0.f;
int whit = 0;
int blac = params->locallab.spots.at(sp).dehazeblack;
if(blac != 0) {
ImProcFunctions::tone_eqdehaz(this, img, whit, blac, params->icm.workingProfile, sk, multiThread);
}
{
array2D<float>& R = dark; // R and dark can safely use the same buffer, which is faster and reduces memory allocations/deallocations
array2D<float> G(W, H);