diff options
author | sophia.papagiannaki <papagiannaki@stettbacher.ch> | 2019-10-21 15:54:57 +0200 |
---|---|---|
committer | sophia.papagiannaki <papagiannaki@stettbacher.ch> | 2019-10-21 15:54:57 +0200 |
commit | 3ca3c3ef985fc68d52b1aeede26b2cf301a1de44 (patch) | |
tree | 0d99bd45a4478c8e99ea4c82543f11a383116b1c /sharpening.c | |
parent | Merge branch 'master' of stettbacher.ch:o-3000/color-pipe (diff) | |
download | o3000-color-pipe-3ca3c3ef985fc68d52b1aeede26b2cf301a1de44.tar.gz o3000-color-pipe-3ca3c3ef985fc68d52b1aeede26b2cf301a1de44.zip |
eliminating black line appearing at image bottom
Diffstat (limited to 'sharpening.c')
-rw-r--r-- | sharpening.c | 8 |
1 files 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) { |