Skip to content

Commit 1dff8b8

Browse files
authored
Merge pull request #3280 from MRtrix3/two_inner_axes_smooth_filter
Reduce threading scheduler contention for smoothing filter
2 parents d603261 + 20756a1 commit 1dff8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/core/filter/smooth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class Smooth : public Base {
151151
}
152152
DEBUG("smoothing dimension " + str(dim) + " in place with stride order: " + str(axes));
153153
SmoothFunctor1D<ImageType> smooth(in_and_output, stdev[dim], dim, extent[dim], zero_boundary);
154-
ThreadedLoop(in_and_output, axes, 1).run(smooth, in_and_output);
154+
ThreadedLoop(in_and_output, axes, std::min<size_t>(2, axes.size())).run(smooth, in_and_output);
155155
if (progress)
156156
++(*progress);
157157
}

0 commit comments

Comments
 (0)