Skip to content

Commit

Permalink
Proper attribution for ARC
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Feb 7, 2022
1 parent fc340e5 commit 10cda17
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
21 changes: 16 additions & 5 deletions shaders/cColorNormalization.fx
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,22 @@ void PostProcessVS(in uint ID : SV_VertexID, out float4 Position : SV_Position,

/*
Sources
Angle-Retaining Chromaticity
Title = "ARC: Angle-Retaining Chromaticity diagram for color constancy error analysis"
Authors = Marco Buzzelli and Simone Bianco and Raimondo Schettini
Year = 2020
Link = http://www.ivl.disco.unimib.it/activities/arc/
Angle-Retaining Chromaticity
Copyright 2020 Marco Buzzelli, Simone Bianco, Raimondo Schettini.
If you use this code in your research, please cite:
@article{buzzelli2020arc,
title = {ARC: Angle-Retaining Chromaticity diagram for color constancy error analysis},
author = {Marco Buzzelli and Simone Bianco and Raimondo Schettini},
journal = {J. Opt. Soc. Am. A},
number = {11},
pages = {1721--1730},
publisher = {OSA},
volume = {37},
month = {Nov},
year = {2020},
doi = {10.1364/JOSAA.398692}
}
Jamie Wong's Chromaticity
Title = "Color: From Hexcodes to Eyeballs"
Authors = Jamie Wong
Expand Down
6 changes: 3 additions & 3 deletions shaders/cInterpolation.fx
Original file line number Diff line number Diff line change
Expand Up @@ -500,13 +500,13 @@ namespace Interpolation
{
// .xy = Normalized Red Channel (x, y)
// .zw = Normalized Green Channel (x, y)
float4 SampleI = tex2D(_SampleData1, TexCoord, 0.0, Level).xyzw;
float4 SampleI = tex2D(_SampleData1, TexCoord).xyzw;

// .xy = Current frame (r, g)
// .zw = Previous frame (r, g)
float4 SampleFrames;
SampleFrames.xy = tex2D(_SampleData0, TexCoord, 0.0, Level).rg;
SampleFrames.zw = tex2D(_SampleData2, TexCoord, 0.0, Level).rg;
SampleFrames.xy = tex2D(_SampleData0, TexCoord).rg;
SampleFrames.zw = tex2D(_SampleData2, TexCoord).rg;
float2 Iz = SampleFrames.xy - SampleFrames.zw;

const float Alpha = max(ldexp(_Constraint * 1e-3, Level - MaxLevel), 1e-7);
Expand Down

0 comments on commit 10cda17

Please sign in to comment.