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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user