commit 019a06f1ab1ff62aabcfdabb4636123ad1718ca8 parent 868335358193363bbdfa570e0fa4d7818e4dda0c Author: Vincent Forest <vincent.forest@meso-star.com> Date: Tue, 17 Mar 2020 17:56:03 +0100 Fill channels with no estimation with the estimation of the 1st channel Diffstat:
| M | src/htrdr_draw_radiance.c | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/htrdr_draw_radiance.c b/src/htrdr_draw_radiance.c @@ -602,6 +602,12 @@ draw_tile pix_accums[HTRDR_ESTIMATE_TIME].nweights += 1; } } + + /* Fill up the remaining channels with the estimate of the first one */ + while(ichannel < 3) { + pix_accums[ichannel] = pix_accums[0]; + ++ichannel; + } } return RES_OK; }