From b5e583b8d33bdb08e216944175cf7040c98fd3c0 Mon Sep 17 00:00:00 2001 From: cyy Date: Fri, 6 Sep 2019 16:11:50 +0800 Subject: [PATCH] fix windows error --- src/data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data.c b/src/data.c index 790248f1..24755b87 100644 --- a/src/data.c +++ b/src/data.c @@ -973,8 +973,9 @@ data load_data_detection(int n, char **paths, int m, int w, int h, int c, int bo void blend_images(image new_img, float alpha, image old_img, float beta) { int data_size = new_img.w * new_img.h * new_img.c; + int i; #pragma omp parallel for - for (int i = 0; i < data_size; ++i) + for (i = 0; i < data_size; ++i) new_img.data[i] = new_img.data[i] * alpha + old_img.data[i] * beta; }