diff --git a/rtengine/guidedfilter.cc b/rtengine/guidedfilter.cc index e64ef4e3e..e7fe9b8af 100644 --- a/rtengine/guidedfilter.cc +++ b/rtengine/guidedfilter.cc @@ -154,6 +154,9 @@ void guidedFilter(const array2D &guide, const array2D &src, array2 rad = LIM(rad, 0, (min(s.width(), s.height()) - 1) / 2 - 1); float **src = s; float **dst = d; +#ifdef _OPENMP + #pragma omp parallel if (multithread) +#endif boxblur(src, dst, blur_buf.data, rad, rad, s.width(), s.height()); };