mirror of https://github.com/AlexeyAB/darknet.git
fix windows error
This commit is contained in:
parent
3c4ddd65c5
commit
b5e583b8d3
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue