Improve chroma mask and blend when using merge file in Color and Light
This commit is contained in:
parent
1d35682185
commit
d64e6b6637
@ -12670,6 +12670,16 @@ void ImProcFunctions::Lab_Local(int call, int sp, float** shbuffer, LabImage * o
|
||||
|
||||
if (lp.mergemet >= 2) {//change transit_shapedetect if merge...because we use others references and other files
|
||||
smerge = 100;
|
||||
#ifdef _OPENMP
|
||||
#pragma omp parallel for schedule(dynamic,16)
|
||||
#endif
|
||||
|
||||
for (int ir = 0; ir < bfh; ir++)
|
||||
for (int jr = 0; jr < bfw; jr++) {
|
||||
bufchro[ir][jr] = sqrt(SQR(bufcolfin->a[ir][jr] - bufcolorig->a[ir][jr]) + SQR(bufcolfin->b[ir][jr] - bufcolorig->b[ir][jr])) / 328.f;
|
||||
buf_a[ir][jr] =((bufcolfin->a[ir][jr] - bufcolorig->a[ir][jr]) / 328.f);
|
||||
buf_b[ir][jr] =((bufcolfin->b[ir][jr] - bufcolorig->b[ir][jr]) / 328.f);
|
||||
}
|
||||
}
|
||||
|
||||
//bufcolfin add for merge
|
||||
|
Loading…
x
Reference in New Issue
Block a user