aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sharpening.c8
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) {