Skip to content

Commit 5800036

Browse files
authored
Merge pull request #2159 from MRtrix3/fix_mrgrid_nearest_neighbour_oversampling
mrgrid: ensure no oversampling when using nearest-neighbour interpolation
2 parents 7964bd5 + fb15eb8 commit 5800036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/filter/resize.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ namespace MR
157157
switch (interp_type) {
158158
case 0:
159159
// Prevent use of oversampling when using nearest-neighbour interpolation
160-
reslice <Interp::Nearest> (input, output, transformation, oversampling, oob);
160+
reslice <Interp::Nearest> (input, output, transformation, {1, 1, 1}, oob);
161161
break;
162162
case 1:
163163
reslice <Interp::Linear> (input, output, transformation, oversampling, oob);

0 commit comments

Comments
 (0)