This commit is contained in:
tTh 2023-07-17 13:43:31 +02:00
parent 6a4b2f7c32
commit 817982c074
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@ extern int verbosity;
/* -------------------------------------------------------------- */
/*
* nouveau Sun Jul 16 07:37:22 UTC 2023
*
* may-be this can be an on-place function ?
*
*/
int poke_sup_rb_g(FloatImg *src, FloatImg *dst)
{
@ -46,7 +49,7 @@ if (verbosity > 1)
for (idx=0; idx<nbpix; idx++) {
dst->R[idx] = src->R[idx];
dst->B[idx] = src->B[idx];
if (src->R[idx] > src->B[idx])
if (src->R[idx] < src->B[idx])
dst->G[idx] = src->R[idx];
else
dst->G[idx] = src->B[idx];