forked from tTh/FloatImg
tweak
This commit is contained in:
parent
6a4b2f7c32
commit
817982c074
@ -24,6 +24,9 @@ extern int verbosity;
|
|||||||
/* -------------------------------------------------------------- */
|
/* -------------------------------------------------------------- */
|
||||||
/*
|
/*
|
||||||
* nouveau Sun Jul 16 07:37:22 UTC 2023
|
* 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)
|
int poke_sup_rb_g(FloatImg *src, FloatImg *dst)
|
||||||
{
|
{
|
||||||
@ -46,7 +49,7 @@ if (verbosity > 1)
|
|||||||
for (idx=0; idx<nbpix; idx++) {
|
for (idx=0; idx<nbpix; idx++) {
|
||||||
dst->R[idx] = src->R[idx];
|
dst->R[idx] = src->R[idx];
|
||||||
dst->B[idx] = src->B[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];
|
dst->G[idx] = src->R[idx];
|
||||||
else
|
else
|
||||||
dst->G[idx] = src->B[idx];
|
dst->G[idx] = src->B[idx];
|
||||||
|
Loading…
Reference in New Issue
Block a user