fix windows error

This commit is contained in:
cyy 2019-09-06 16:11:50 +08:00
parent 3c4ddd65c5
commit b5e583b8d3
1 changed files with 2 additions and 1 deletions

View File

@ -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) 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 data_size = new_img.w * new_img.h * new_img.c;
int i;
#pragma omp parallel for #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; new_img.data[i] = new_img.data[i] * alpha + old_img.data[i] * beta;
} }