From 26b13629922e56ae3337fce3df15387d28172681 Mon Sep 17 00:00:00 2001 From: Daniil Kazantsev Date: Mon, 30 Sep 2019 09:14:11 +0100 Subject: loop init fix --- src/Core/regularisers_CPU/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Core/regularisers_CPU/utils.c b/src/Core/regularisers_CPU/utils.c index 3a7ed25..5bb3a5c 100644 --- a/src/Core/regularisers_CPU/utils.c +++ b/src/Core/regularisers_CPU/utils.c @@ -119,13 +119,13 @@ float TV_energy3D(float *U, float *U0, float *E_val, float lambda, int type, int /* Down-Up scaling of 2D images using bilinear interpolation */ float Im_scale2D(float *Input, float *Scaled, int w, int h, int w2, int h2) { - int x, y, index; + int x, y, index, i, j; float x_ratio = ((float)(w-1))/w2; float y_ratio = ((float)(h-1))/h2; float A, B, C, D, x_diff, y_diff, gray; #pragma omp parallel for shared (Input, Scaled) private(x, y, index, A, B, C, D, x_diff, y_diff, gray) - for (int j=0;j