merge with Dev..

This commit is contained in:
Desmis 2018-04-03 12:25:24 +02:00
commit e4d7b278ee
6 changed files with 4 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -3782,13 +3782,12 @@ void ImProcFunctions::rgbProc(Imagefloat* working, LabImage* lab, PipetteBuffer
float g = std::max(gtemp[ti * TS + tj], 0.f); float g = std::max(gtemp[ti * TS + tj], 0.f);
float b = std::max(btemp[ti * TS + tj], 0.f); float b = std::max(btemp[ti * TS + tj], 0.f);
if (r > 65535 || g > 65535 || b > 65535) { if (max(r, g, b) > MAXVALF && min(r, g, b) < MAXVALF) {
filmlike_clip(&r, &g, &b); filmlike_clip(&r, &g, &b);
} }
rtemp[ti * TS + tj] = r;
setUnlessOOG(rtemp[ti * TS + tj], r); gtemp[ti * TS + tj] = g;
setUnlessOOG(gtemp[ti * TS + tj], g); btemp[ti * TS + tj] = b;
setUnlessOOG(btemp[ti * TS + tj], b);
} }
} }