Skip to content

Commit 3967cb4

Browse files
author
Jed Smith
committed
use perceptual intensity mixed by ccf for perceptual dechroma.
1 parent 43ec58e commit 3967cb4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

OpenDRT/nuke/OpenDRT.nk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,6 @@ set Nf5423900 [stack 0]
12201220
selected true
12211221
xpos 180
12221222
ypos -129
1223-
disable true
12241223
}
12251224
Group {
12261225
name ICtCp_to_Rec2020_

OpenDRT/resolve/OpenDRT.dctl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ __DEVICE__ float3 transform(int p_Width, int p_Height, int p_X, int p_Y, float p
331331
// highlight dechroma
332332
float dch = 0.5f;
333333

334-
// Enable quasi-perceptual highlight dechroma
334+
// Enable perceptual highlight dechroma
335335
int pdch = 1;
336336

337337
/* Set up presets
@@ -474,7 +474,7 @@ __DEVICE__ float3 transform(int p_Width, int p_Height, int p_X, int p_Y, float p
474474
rgb = make_float3(rgb.x, rgb.y, rgb_ndc.z);
475475

476476
// Copy Intensity from source, masked by ccf. This helps preserve tonality a lot but need to do more testing to see if it's a bad idea...
477-
// rgb = make_float3(rgb_ndc.x * ccf + rgb.x * (1.0f - ccf), rgb.y, rgb_ndc.z);
477+
rgb = make_float3(rgb_ndc.x * ccf + rgb.x * (1.0f - ccf), rgb.y, rgb_ndc.z);
478478

479479
// Convert back to XYZ
480480
rgb = ictcp_to_xyz(rgb, Lw, 1);

OpenDRT/resolve/OpenDRT_params.dctl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ __DEVICE__ float3 transform(int p_Width, int p_Height, int p_X, int p_Y, float p
483483
rgb = make_float3(rgb.x, rgb.y, rgb_ndc.z);
484484

485485
// Copy Intensity from source, masked by ccf. This helps preserve tonality a lot but need to do more testing to see if it's a bad idea...
486-
// rgb = make_float3(rgb_ndc.x * ccf + rgb.x * (1.0f - ccf), rgb.y, rgb_ndc.z);
486+
rgb = make_float3(rgb_ndc.x * ccf + rgb.x * (1.0f - ccf), rgb.y, rgb_ndc.z);
487487

488488
// Convert back to XYZ
489489
rgb = ictcp_to_xyz(rgb, Lw, 1);

0 commit comments

Comments
 (0)