From d810de4445bc04a62879c76b808931060f958c4e Mon Sep 17 00:00:00 2001 From: heckflosse Date: Mon, 6 Nov 2017 19:08:30 +0100 Subject: [PATCH] Double speed for rescale_bilinear --- rtengine/tmo_fattal02.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/tmo_fattal02.cc b/rtengine/tmo_fattal02.cc index 37e01ea97..71b47cdaf 100644 --- a/rtengine/tmo_fattal02.cc +++ b/rtengine/tmo_fattal02.cc @@ -1123,8 +1123,8 @@ void rescale_bilinear(const Array2Df &src, Array2Df &dst, bool multithread) #ifdef _OPENMP #pragma omp parallel for if (multithread) #endif - for (int x = 0; x < dst.getCols(); ++x) { - for (int y = 0; y < dst.getRows(); ++y) { + for (int y = 0; y < dst.getRows(); ++y) { + for (int x = 0; x < dst.getCols(); ++x) { dst(x, y) = get_bilinear_value(src, x * col_scale, y * row_scale); } }