From 3ca3c3ef985fc68d52b1aeede26b2cf301a1de44 Mon Sep 17 00:00:00 2001 From: "sophia.papagiannaki" Date: Mon, 21 Oct 2019 15:54:57 +0200 Subject: eliminating black line appearing at image bottom --- sharpening.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sharpening.c b/sharpening.c index 9e8ba86..d997b73 100644 --- a/sharpening.c +++ b/sharpening.c @@ -56,8 +56,8 @@ static void mono_to_yuv(int16_t *img_yuv, const void *img_mono, const int height index_mono = 0; index_yuv = 0; - for(y = 1; y < (height-1); y++) { - for(x = 1; x < (width-1); x++) { + for(y = 0; y < height; y++) { + for(x = 0; x < width; x++) { if(bit_channel <= 8) { img_yuv[index_yuv] = in8[index_mono]; img_yuv[index_yuv+1] = 0; @@ -94,8 +94,8 @@ static void yuv_to_mono(void *img_mono, const int16_t *img_yuv, const int height index_mono = 0; index_yuv = 0; - for(y = 1; y < (height-1); y++) { - for(x = 1; x < (width-1); x++) { + for(y = 0; y < height; y++) { + for(x = 0; x < width; x++) { value = img_yuv[index_yuv]; if(value < 0) { -- cgit v1.2.1