Skip to content

Commit

Permalink
pick: show absolute difference, no negative values
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed Sep 13, 2024
1 parent ab26cf3 commit b9c55a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pipe/modules/pick/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ void write_sink(
if(show == 2)
{
const float d = _cie_de76(picked+3*k, ref+3*k);
picked[3*k+0] -= ref[3*k+0];
picked[3*k+1] -= ref[3*k+1];
picked[3*k+2] -= ref[3*k+2];
picked[3*k+0] = fabsf(picked[3*k+0] - ref[3*k+0]);
picked[3*k+1] = fabsf(picked[3*k+1] - ref[3*k+1]);
picked[3*k+2] = fabsf(picked[3*k+2] - ref[3*k+2]);
if(d < de76[1])
{
// mi = k;
Expand Down

0 comments on commit b9c55a8

Please sign in to comment.