Skip to content

Commit 607b125

Browse files
committed
Negadoctor: Adapt algorythmes to slide film
- invert low white balance settings for slide. - change auto high color balance, black and exposure for slide. - change labels and tooltips text depending on film stock.
1 parent 07521fc commit 607b125

File tree

2 files changed

+285
-77
lines changed

2 files changed

+285
-77
lines changed

data/kernels/negadoctor.cl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ negadoctor (read_only image2d_t in, write_only image2d_t out, int width, int hei
3838
// Correct density in log space
3939
o = wb_high * o + offset;
4040

41-
// Print density on paper : ((1 - 10^corrected_de + black) * exposure)^gamma rewritten for FMA
42-
o = (slide_film) ? (float4)1.0f - native_exp10(o)
43-
: native_exp10(o);
44-
o = -((float4)exposure * o + (float4)black);
41+
// Print density on paper (negative film) : ((1 - 10^corrected_de + black) * exposure)^gamma rewritten for FMA
42+
o = native_exp10(o);
43+
o = (slide_film) ? ((float4)exposure * o + (float4)black)
44+
: -((float4)exposure * o + (float4)black);
4545
o = native_powr(fmax(o, (float4)0.0f), gamma); // note : this is always > 0
4646

4747
// Compress highlights and clip negatives. from https://lists.gnu.org/archive/html/openexr-devel/2005-03/msg00009.html

0 commit comments

Comments
 (0)